From patchwork Wed Sep 9 06:36:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guo, Jia" X-Patchwork-Id: 76992 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 03F69A04B1; Wed, 9 Sep 2020 08:38:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B0951BF8F; Wed, 9 Sep 2020 08:38:24 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 45DE21BE0C for ; Wed, 9 Sep 2020 08:38:23 +0200 (CEST) IronPort-SDR: SUcCWyeBygsfXY7MTx4X/NhsVkkRyw8I93op0dbzvEdwgcrqQ5I7NAZaWvf7CyyuKPYKg728tX z8O+x3FYydhg== X-IronPort-AV: E=McAfee;i="6000,8403,9738"; a="243094287" X-IronPort-AV: E=Sophos;i="5.76,408,1592895600"; d="scan'208";a="243094287" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 23:38:22 -0700 IronPort-SDR: i55JnvWFG73ejihGH3/kHWdMGHae08VSmAHvkwKzxYM4qypA1qMrWxXPandX3tG9t0yQtD5oUE 2LPAaZLNWobA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,408,1592895600"; d="scan'208";a="300049866" Received: from npg-dpdk-cvl-jeffguo-01.sh.intel.com ([10.67.111.128]) by orsmga003.jf.intel.com with ESMTP; 08 Sep 2020 23:38:18 -0700 From: Jeff Guo To: qiming.yang@intel.com, beilei.xing@intel.com, wei.zhao1@intel.com, qi.z.zhang@intel.com, jingjing.wu@intel.com Cc: bruce.richardson@intel.com, dev@dpdk.org, jia.guo@intel.com, helin.zhang@intel.com, mb@smartsharesystems.com, ferruh.yigit@intel.com, haiyue.wang@intel.com, stephen@networkplumber.org, barbette@kth.se Date: Wed, 9 Sep 2020 14:36:31 +0800 Message-Id: <20200909063636.60205-1-jia.guo@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200827075452.1751-1-jia.guo@intel.com> References: <20200827075452.1751-1-jia.guo@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v3 0/5] fix vector rx burst for PMDs 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" The limitation of burst size in vector rx was removed, since it should retrieve as much received packets as possible. And also the scattered receive path should use a wrapper function to achieve the goal of burst maximizing. This patch set aims to maximize vector rx burst for for ixgbe/i40e/ice/iavf/fm10k PMDs, and also do some code cleaning. v3->v2: 1:move define into header file. 2:delete some useless doc. v2->v1: 1:add fm10k driver case 2:refine some doc Jeff Guo (5): net/iavf: fix vector rx burst for iavf net/ixgbe: fix vector rx burst for ixgbe net/i40e: fix vector rx burst for i40e net/ice: fix vector rx burst for ice net/fm10k: fix vector rx burst for fm10k drivers/net/fm10k/fm10k_rxtx_vec.c | 42 ++++++-- drivers/net/i40e/i40e_rxtx.h | 1 + drivers/net/i40e/i40e_rxtx_vec_altivec.c | 64 +++++++----- drivers/net/i40e/i40e_rxtx_vec_avx2.c | 29 +++--- drivers/net/i40e/i40e_rxtx_vec_neon.c | 58 +++++++---- drivers/net/i40e/i40e_rxtx_vec_sse.c | 58 +++++++---- drivers/net/iavf/iavf_rxtx.h | 1 + drivers/net/iavf/iavf_rxtx_vec_avx2.c | 78 +++++++-------- drivers/net/iavf/iavf_rxtx_vec_sse.c | 119 +++++++++++++++-------- drivers/net/ice/ice_rxtx.h | 1 + drivers/net/ice/ice_rxtx_vec_avx2.c | 23 +++-- drivers/net/ice/ice_rxtx_vec_sse.c | 56 +++++++---- drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c | 77 ++++++++------- drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c | 61 +++++++----- 14 files changed, 412 insertions(+), 256 deletions(-)