From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EF465A0471 for ; Fri, 16 Aug 2019 10:31:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 069BF37B7; Fri, 16 Aug 2019 10:31:20 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 0884F378B for ; Fri, 16 Aug 2019 10:31:17 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us4.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 126EA280057; Fri, 16 Aug 2019 08:31:15 +0000 (UTC) Received: from [192.168.1.11] (85.187.13.152) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 16 Aug 2019 09:30:48 +0100 To: , , , Igor Russkikh , "Pavel Belous" , Ajit Khaparde , Somnath Kotur , Rahul Lakkireddy , Hemant Agrawal , Sachin Saxena , Wenzhuo Lu , Gagandeep Singh , John Daley , Hyong Youb Kim , Gaetan Rivet , Qi Zhang , Xiao Wang , Beilei Xing , Jingjing Wu , Qiming Yang , "Konstantin Ananyev" , Matan Azrad , Shahaf Shuler , Yongseok Koh , Viacheslav Ovsiienko , Zyta Szpak , Liron Himi , Tomasz Duszynski , Stephen Hemminger , "K. Y. Srinivasan" , Haiyang Zhang , Alejandro Lucero , Nithin Dabilpuram , Kiran Kumar K , "Rasesh Mody" , Shahed Shaikh , Keith Wiles , Maciej Czekaj , Yong Wang CC: References: <20190816055511.2322-1-pbhagavatula@marvell.com> <20190816055511.2322-7-pbhagavatula@marvell.com> From: Andrew Rybchenko Message-ID: <3a371b32-c61d-431a-3bcd-89817c760a14@solarflare.com> Date: Fri, 16 Aug 2019 11:30:39 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190816055511.2322-7-pbhagavatula@marvell.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [85.187.13.152] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24850.003 X-TM-AS-Result: No-1.050000-8.000000-10 X-TMASE-MatchedRID: wQVy7q402w1XscJNCPoBHfZvT2zYoYOwC/ExpXrHizyRoQLwUmtov11o 7wPE6VhYaFDfCgDQm+6z7hsmQVDjTchJhcldb+0MqJSK+HSPY++6SpEJ2hepWlSOymiJfTYXG8x nCj61HFzi8zVgXoAltkWL4rBlm20vo15kJcETr3lq8/xv2Um1avoLR4+zsDTtUmvo6Sgg5hHTMF RoItL75aYt9RdErjRWixah/7ajKRNBLT0zCXii9GBs0krVzbJHngo45CBp0jRDaHgkdYT2+fNcq bSLMLUfQyTYBwdxHGpR029mOM6P0LrcE8xytxC5d5hZXZFoB8PxWx93BSYyycC+ksT6a9fy X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.050000-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24850.003 X-MDID: 1565944277-RMNa3svMRZBP Subject: Re: [dpdk-dev] [PATCH 6/7] net: add ptype set default functionality X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 8/16/19 8:55 AM, pbhagavatula@marvell.com wrote: > From: Pavan Nikhilesh > > Add ptype set default functionality i.e. enable ptype by default and > report ptypes even if application disables ptypes. > > Signed-off-by: Pavan Nikhilesh May be it is better to have rte_ethdev_supported_ptype_set_dummy() in ethdev library and use it in PMDs instead of duplicating the function in all drivers. Or even treat NULL as dummy? It will remove the patch completely.