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 32E3AA046B for ; Fri, 23 Aug 2019 12:10:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A29C1BFA3; Fri, 23 Aug 2019 12:10:58 +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 2B18E1BFA2 for ; Fri, 23 Aug 2019 12:10:56 +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-us5.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id B60FF40059; Fri, 23 Aug 2019 10:10:54 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 23 Aug 2019 11:10:39 +0100 To: , , Nicolas Chautru , Chas Williams , David Hunt , Harry van Haaren , "Marko Kovacevic" , Ori Kam , "Bruce Richardson" , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki , Bernard Iremonger , Cristian Dumitrescu , Konstantin Ananyev , Ferruh Yigit , Declan Doherty , Reshma Pattan , John McNamara , "Xiaoyun Li" , Jasvinder Singh , "Byron Marohn" , Maxime Coquelin , Tiwei Bie , Zhihong Wang CC: References: <20190821204755.1990-1-pbhagavatula@marvell.com> <20190821204755.1990-8-pbhagavatula@marvell.com> From: Andrew Rybchenko Message-ID: Date: Fri, 23 Aug 2019 13:10:35 +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: <20190821204755.1990-8-pbhagavatula@marvell.com> Content-Language: en-GB X-Originating-IP: [91.220.146.112] 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-24864.003 X-TM-AS-Result: No-0.847500-8.000000-10 X-TMASE-MatchedRID: u7Yf2n7Ca/34ECMHJTM/ufZvT2zYoYOwC/ExpXrHizynuXqvEw6ocAId /ywogfRIiltkvKgM0SvKwJTMETPtaCXzJVbRaoxZPwKTD1v8YV5UENBIMyKD0RwKSCi0KXuEHqr ocmLRsggMtV23IHpuEQiFuSUkKRhgGqIFd3E9+i7M0ihsfYPMYY7u1T4G/rnNB4sIhfTjqIHMRU Madz4R8nlBiMWIMKVz0AAj4Lcjr8UjYMsN7MGDGOFgDmzNVVKoLZWWNVgH0Y3Dv5dDcuT2eVUu4 dMbNIOZw9CeDtZbCVf8ekVciT9BynBib4xox+Ta5BgEdUqqANR9LQinZ4QefL6qvLNjDYTwxbGv mM9nj5Mqtq5d3cxkNWK2wr0ze+D9XawJzG5o2UG/VbrwUkvzHDReqT7DrXTxMQLBTtBtj3UF1LH wTS6MfkAUDnujpoxuLG+LtkC4dLJfDW6avNRtXkUknHSy1g7HohShy11iYgF5uDyaAB2OzSk3AN 3KcfQ3sjDimzkzY+qI5zE67yZyQ5n3dB1BpxUEm3pIQOIJ7GinNpUKLkqur47e7lIR7XDfwL6Sx Ppr1/I= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-0.847500-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24864.003 X-MDID: 1566555055-Exq2cuuKfJpg Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v2 7/7] examples: disable Rx packet type parsing 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/21/19 11:47 PM, pbhagavatula@marvell.com wrote: > From: Pavan Nikhilesh > > Disable packet type parsing in examples that don't use > `rte_mbuf::packet_type` by setting ptype_mask as 0 in > `rte_eth_dev_set_supported_ptypes` > > Signed-off-by: Pavan Nikhilesh > diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c > index 9acf666dc..8ae6e4972 100644 > --- a/examples/bbdev_app/main.c > +++ b/examples/bbdev_app/main.c > @@ -478,6 +478,7 @@ initialize_ports(struct app_config_params *app_params, > } > > rte_eth_promiscuous_enable(port_id); > + rte_eth_dev_set_supported_ptypes(port_id, 0); Release notes and 1/7 patch description say that RTE_PTYPE_UNKNOWN may be set in this case and may be it is even better vs 0. > > rte_eth_macaddr_get(port_id, &bbdev_port_eth_addr); > print_mac(port_id, &bbdev_port_eth_addr); >