From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FB1AC4363D for ; Thu, 1 Oct 2020 00:26:23 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 9A603206B2 for ; Thu, 1 Oct 2020 00:26:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A603206B2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org 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