From patchwork Thu Mar 3 06:38:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ding, Xuan" X-Patchwork-Id: 108512 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 65858A04A2; Thu, 3 Mar 2022 07:40:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E273F4068B; Thu, 3 Mar 2022 07:40:00 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 6B83740141 for ; Thu, 3 Mar 2022 07:39:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646289598; x=1677825598; h=from:to:cc:subject:date:message-id; bh=NSCQfrrWXL8+vFi5Uirx8/E2hq1a7T9Hb9bHloQ4Ptc=; b=Lr36uRC1PaydxsmIshCUo5Kli8wkwwCzslC5geMpVtTxXLB1rfWqd18V XvXDy3e9VZz8CMJ2fjlMeZAh+BEdB8HemPmokIofo92f7SzudTUIosFhL RdBv+UpkB0d4pDn1ZXaVh9FnHYYlq3pDsof9XcNGBidrobc+bI8v5yqHw Oo3K/eslbsySL8CY9mHtqdUQDCrV2bqS+SvrbCn1hCIoD3gVDZWSyybyZ UKU33MbgMY/NtAw9tMJnxyM+XLccVr0EGYiHr06peuA88BxMPNptfO/Bp 7Pk+2NF7K+S5o3N+kEuYbzUhkBEqbji6ZUyb6NuSzH2ZsOZljrbyMBpdw Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10274"; a="253523309" X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="253523309" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2022 22:39:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,151,1643702400"; d="scan'208";a="535699315" Received: from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.110.228]) by orsmga007.jf.intel.com with ESMTP; 02 Mar 2022 22:39:54 -0800 From: xuan.ding@intel.com To: xiaoyun.li@intel.com, aman.deep.singh@intel.com, yuying.zhang@intel.com, qi.z.zhang@intel.com, qiming.yang@intel.com Cc: dev@dpdk.org, ping.yu@intel.com, Xuan Ding Subject: [RFC 0/2] net/ice: support header split in Rx data path Date: Thu, 3 Mar 2022 06:38:39 +0000 Message-Id: <20220303063841.48763-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 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 From: Xuan Ding Header split is useful in some scenarios, such as GPU acceleration. The spliting will help to enable true zero copy and hence improve the performance significantly. This patchset enables header split in normal Rx data paths. When Rx queue is configured with header split feature with testpmd, packets received will be directly splited into two different mempools. Xuan Ding (2): app/testpmd: add header split configuration net/ice: support header split in Rx data path app/test-pmd/cmdline.c | 85 +++++++++++ app/test-pmd/testpmd.c | 6 +- app/test-pmd/testpmd.h | 2 + drivers/net/ice/ice_ethdev.c | 5 +- drivers/net/ice/ice_rxtx.c | 211 ++++++++++++++++++++++---- drivers/net/ice/ice_rxtx.h | 15 ++ drivers/net/ice/ice_rxtx_vec_common.h | 3 + 7 files changed, 295 insertions(+), 32 deletions(-)