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 14DFBA04B5; Thu, 1 Oct 2020 02:26:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4D6811D5A8; Thu, 1 Oct 2020 02:26:20 +0200 (CEST) Received: from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130]) by dpdk.org (Postfix) with ESMTP id D3FEA1D582 for ; Thu, 1 Oct 2020 02:26:18 +0200 (CEST) From: Bing Zhao To: thomas@monjalon.net, orika@nvidia.com, ferruh.yigit@intel.com, arybchenko@solarflare.com, mdr@ashroe.eu, nhorman@tuxdriver.com, bernard.iremonger@intel.com, beilei.xing@intel.com, wenzhuo.lu@intel.com Cc: dev@dpdk.org Date: Thu, 1 Oct 2020 08:25:58 +0800 Message-Id: <1601511962-21532-1-git-send-email-bingz@nvidia.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1600012140-70151-1-git-send-email-bingz@nvidia.com> References: <1600012140-70151-1-git-send-email-bingz@nvidia.com> Subject: [dpdk-dev] [PATCH 0/4] introduce support for hairpin between two ports 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" This patch set will add the support for hairpin between two ports. In the meanwhile, the compatibility of the previous single port mode is taken into consideration and kept. The patches contain the following changes: 1. new APIs to bind and unbind hairpin ports in manual binding mode. 2. new internal APIs for PMD to pass the queue information and configure the queue pair. 3. new attribute members in the hairpin queue configuraiton structure to specify the binding mode and enable explicit TX flow mode. 4. Testpmd support to configure the hairpin modes for two ports hairpin verification. Bing Zhao (4): ethdev: add hairpin bind and unbind APIs ethdev: add new attributes to hairpin config ethdev: add APIs for hairpin queue operation app/testpmd: change hairpin queues setup app/test-pmd/parameters.c | 15 +++ app/test-pmd/testpmd.c | 68 ++++++++++++- app/test-pmd/testpmd.h | 2 + lib/librte_ethdev/rte_ethdev.c | 162 +++++++++++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev.h | 69 +++++++++++++ lib/librte_ethdev/rte_ethdev_driver.h | 160 ++++++++++++++++++++++++++++++ lib/librte_ethdev/rte_ethdev_version.map | 5 + 7 files changed, 477 insertions(+), 4 deletions(-) -- 2.5.5