From patchwork Mon Feb 13 18:18:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kamalakshitha Aligeri X-Patchwork-Id: 123822 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 6CAF641C8B; Mon, 13 Feb 2023 19:18:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56B5442D41; Mon, 13 Feb 2023 19:18:50 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 4B23942D3C for ; Mon, 13 Feb 2023 19:18:49 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 721584B3; Mon, 13 Feb 2023 10:19:31 -0800 (PST) Received: from ampere-altra-2-1.usa.Arm.com (ampere-altra-2-1.usa.arm.com [10.118.91.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9CAFF3F703; Mon, 13 Feb 2023 10:18:48 -0800 (PST) From: Kamalakshitha Aligeri To: Yuying.Zhang@intel.com, beilei.xing@intel.com, olivier.matz@6wind.com, andrew.rybchenko@oktetlabs.ru, bruce.richardson@intel.com, mb@smartsharesystems.com, konstantin.ananyev@huawei.com, Honnappa.Nagarahalli@arm.com, ruifeng.wang@arm.com, feifei.wang2@arm.com Cc: dev@dpdk.org, nd@arm.com, Kamalakshitha Aligeri Subject: [PATCH v3 0/2] Integrated mempool cache zero-copy API's Date: Mon, 13 Feb 2023 18:18:24 +0000 Message-Id: <20230213181826.145685-1-kamalakshitha.aligeri@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230210065407.209567-2-kamalakshitha.aligeri@arm.com> References: <20230210065407.209567-2-kamalakshitha.aligeri@arm.com> MIME-Version: 1.0 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 In i40e PMD, for fast_free path in Tx, freeing mbufs firstly need to do an extra memcpy due to the special structure of ‘txep’. Thus, replaced the put_bulk function with the zero-copy put API to avoid the cost of this memcpy On Ampere-altra server, for single-core DPDK l3fwd test, throughput improves by 5% with the new API v3: Fixed the way mbufs are accessed from txep (Morten Brorup) v2: Fixed the code for n > RTE_MEMPOOL_CACHE_MAX_SIZE (Morten Brorup) v1: 1. Integrated the zc_put API in i40e PMD 2. Added mempool test cases with the zero-cpoy API's Kamalakshitha Aligeri (2): net/i40e: replace put function test/mempool: add zero-copy API's .mailmap | 1 + app/test/test_mempool.c | 81 ++++++++++++++++++------- drivers/net/i40e/i40e_rxtx_vec_common.h | 27 +++++++-- 3 files changed, 83 insertions(+), 26 deletions(-) --- 2.25.1