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 15C2EA00D7; Thu, 31 Oct 2019 18:18:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 321D21D150; Thu, 31 Oct 2019 18:18:28 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id A5C5C1D14E for ; Thu, 31 Oct 2019 18:18:26 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Oct 2019 10:18:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,252,1569308400"; d="scan'208";a="199586000" Received: from npg-dpdk-haiyue-1.sh.intel.com ([10.67.119.213]) by fmsmga007.fm.intel.com with ESMTP; 31 Oct 2019 10:18:23 -0700 From: Haiyue Wang To: dev@dpdk.org, thomas@monjalon.net, arybchenko@solarflare.com, ferruh.yigit@intel.com, jerinjacobk@gmail.com, xiaolong.ye@intel.com, ray.kinsella@intel.com, chenmin.sun@intel.com Cc: Haiyue Wang Date: Fri, 1 Nov 2019 01:11:37 +0800 Message-Id: <20191031171139.105110-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1 1/3] net/ice: remove the specific burst mode bit set 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" Just keep the vectorization related burst mode bit set, others are not so generic. Signed-off-by: Haiyue Wang --- drivers/net/ice/ice_rxtx.c | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 8d4820d3c..65e50a713 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -2800,22 +2800,16 @@ ice_rx_burst_mode_get(struct rte_eth_dev *dev, __rte_unused uint16_t queue_id, eth_rx_burst_t pkt_burst = dev->rx_pkt_burst; uint64_t options; - if (pkt_burst == ice_recv_scattered_pkts) - options = RTE_ETH_BURST_SCALAR | RTE_ETH_BURST_SCATTERED; - else if (pkt_burst == ice_recv_pkts_bulk_alloc) - options = RTE_ETH_BURST_SCALAR | RTE_ETH_BURST_BULK_ALLOC; - else if (pkt_burst == ice_recv_pkts) + if (pkt_burst == ice_recv_scattered_pkts || + pkt_burst == ice_recv_pkts_bulk_alloc || + pkt_burst == ice_recv_pkts) options = RTE_ETH_BURST_SCALAR; #ifdef RTE_ARCH_X86 - else if (pkt_burst == ice_recv_scattered_pkts_vec_avx2) - options = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_AVX2 | - RTE_ETH_BURST_SCATTERED; - else if (pkt_burst == ice_recv_pkts_vec_avx2) + else if (pkt_burst == ice_recv_scattered_pkts_vec_avx2 || + pkt_burst == ice_recv_pkts_vec_avx2) options = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_AVX2; - else if (pkt_burst == ice_recv_scattered_pkts_vec) - options = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_SSE | - RTE_ETH_BURST_SCATTERED; - else if (pkt_burst == ice_recv_pkts_vec) + else if (pkt_burst == ice_recv_scattered_pkts_vec || + pkt_burst == ice_recv_pkts_vec) options = RTE_ETH_BURST_VECTOR | RTE_ETH_BURST_SSE; #endif else @@ -2956,9 +2950,7 @@ ice_tx_burst_mode_get(struct rte_eth_dev *dev, __rte_unused uint16_t queue_id, eth_tx_burst_t pkt_burst = dev->tx_pkt_burst; uint64_t options; - if (pkt_burst == ice_xmit_pkts_simple) - options = RTE_ETH_BURST_SCALAR | RTE_ETH_BURST_SIMPLE; - else if (pkt_burst == ice_xmit_pkts) + if (pkt_burst == ice_xmit_pkts_simple || pkt_burst == ice_xmit_pkts) options = RTE_ETH_BURST_SCALAR; #ifdef RTE_ARCH_X86 else if (pkt_burst == ice_xmit_pkts_vec_avx2) -- 2.17.1