From patchwork Thu Apr 15 08:58:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leyi Rong X-Patchwork-Id: 91558 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 02616A0A0E; Thu, 15 Apr 2021 11:23:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9A0A16217B; Thu, 15 Apr 2021 11:23:40 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 79547162170 for ; Thu, 15 Apr 2021 11:23:38 +0200 (CEST) IronPort-SDR: q8fT4pBMoF8268ujVw5tOe8zlV4K+4XW/KWutGrNdAPHKvXkmoPP7en5/MeK/ipvN2yshxgWmE 2TqWB8lwCmZQ== X-IronPort-AV: E=McAfee;i="6200,9189,9954"; a="182320654" X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="182320654" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 02:23:37 -0700 IronPort-SDR: U3GVYM5vSoVD2koghz0xi0UpeSwD1xCEVP4QPOJrazFXqPQq2tN2cJaGCtDPaNM+BJmLAn1IKw WrnQVgVq02fw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,223,1613462400"; d="scan'208";a="452841420" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221]) by fmsmga002.fm.intel.com with ESMTP; 15 Apr 2021 02:23:35 -0700 From: Leyi Rong To: qi.z.zhang@intel.com, wenzhuo.lu@intel.com Cc: dev@dpdk.org, Leyi Rong Date: Thu, 15 Apr 2021 16:58:09 +0800 Message-Id: <20210415085811.56429-1-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210317091409.11725-1-leyi.rong@intel.com> References: <20210317091409.11725-1-leyi.rong@intel.com> Subject: [dpdk-dev] [PATCH v5 0/2] add alternative AVX512 offload path X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Add alternative Rx/Tx offload path for AVX512, which can support Rx/Tx offload features, like checksum/vlan/RSS/QinQ offload. Tested-by: Qin Sun --- v5: - fix bug [DPDK-26560] invalid checksum for tunnel packet. v4: - code rebased. v3: - complete ice_dev_supported_ptypes_get() for new adding offload functions. - complete tx/rx burst infos for new adding offload functions. v2: - add "do_offload" parameter to according functions for reducing code duplication. Leyi Rong (2): net/ice: add Tx AVX512 offload path net/ice: add Rx AVX512 offload path drivers/net/ice/ice_rxtx.c | 78 +++-- drivers/net/ice/ice_rxtx.h | 10 + drivers/net/ice/ice_rxtx_vec_avx2.c | 2 +- drivers/net/ice/ice_rxtx_vec_avx512.c | 403 +++++++++++++++++--------- drivers/net/ice/ice_rxtx_vec_common.h | 130 +++++++-- drivers/net/ice/ice_rxtx_vec_sse.c | 2 +- 6 files changed, 449 insertions(+), 176 deletions(-)