From patchwork Wed May 31 13:04:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xing, Beilei" X-Patchwork-Id: 127787 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 36E0342BF4; Wed, 31 May 2023 15:29:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0B28940A89; Wed, 31 May 2023 15:29:13 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id D0C9240A82 for ; Wed, 31 May 2023 15:29:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685539752; x=1717075752; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hIWjMUfL4cknEM6nTsOaNS9eyyQzshZ3lymXYDDK0Ro=; b=RSRDGVh+32nUMog+GDyd9ZOHXAyg/RikAB8i4TJKiSqO1Ph7dpqz6Xi6 V49iQGyoiKNVibvrHXPj7w60ZDW8QvT9TXx25LDsZajgOmPTlBipULy57 32vTvPd+mk4miNEF32npuHo9FMX21zyth0Q9qUJXvBJC6YQQdb1i836NP z2C1bnOVbAPgpYP1Xyllbdi9b4cD97Wv94gF+arDqTyVBwMCfZq5EuzzA 48x9uYN0ibtLRHLs/NbhkgK3tjirMh8zUIB2R/+V72+iMJHJlTbAI8ksp qL9k7vsfDcHBiksUz77RIRM8+wUp8oIqQi42TT9+OD6Y3h/CbkR634hvS g==; X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="358497829" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="358497829" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 06:29:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="657325504" X-IronPort-AV: E=Sophos;i="6.00,207,1681196400"; d="scan'208";a="657325504" Received: from dpdk-beileix-3.sh.intel.com ([10.67.110.253]) by orsmga003.jf.intel.com with ESMTP; 31 May 2023 06:29:09 -0700 From: beilei.xing@intel.com To: jingjing.wu@intel.com Cc: dev@dpdk.org, mingxia.liu@intel.com, Beilei Xing Subject: [PATCH v7 00/14] net/cpfl: add hairpin queue support Date: Wed, 31 May 2023 13:04:36 +0000 Message-Id: <20230531130450.26380-1-beilei.xing@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20230531102551.20936-1-beilei.xing@intel.com> References: <20230531102551.20936-1-beilei.xing@intel.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 From: Beilei Xing This patchset adds hairpin queue support. v2 changes: - change hairpin rx queus configuration sequence. - code refine. v3 changes: - Refine the patchset based on the latest code. v4 change: - Remove hairpin rx buffer queue's sw_ring. - Change hairpin rx queus configuration sequence in cpfl_hairpin_bind function. - Refind hairpin queue setup and release. v5 change: - Fix memory leak during queue setup. - Refine hairpin Rxq/Txq start/stop. v6 change: - Add sign-off. v7 change: - Update cpfl.rst Beilei Xing (14): net/cpfl: refine structures common/idpf: support queue groups add/delete net/cpfl: add haipin queue group during vport init net/cpfl: support hairpin queue capbility get net/cpfl: support hairpin queue setup and release common/idpf: add queue config API net/cpfl: support hairpin queue configuration common/idpf: add switch queue API net/cpfl: support hairpin queue start/stop common/idpf: add irq map config API net/cpfl: enable write back based on ITR expire net/cpfl: support peer ports get net/cpfl: support hairpin bind/unbind doc: update the doc of CPFL PMD doc/guides/nics/cpfl.rst | 7 + drivers/common/idpf/idpf_common_device.c | 75 ++ drivers/common/idpf/idpf_common_device.h | 4 + drivers/common/idpf/idpf_common_virtchnl.c | 138 +++- drivers/common/idpf/idpf_common_virtchnl.h | 18 + drivers/common/idpf/version.map | 6 + drivers/net/cpfl/cpfl_ethdev.c | 610 ++++++++++++++-- drivers/net/cpfl/cpfl_ethdev.h | 35 +- drivers/net/cpfl/cpfl_rxtx.c | 781 +++++++++++++++++++-- drivers/net/cpfl/cpfl_rxtx.h | 76 ++ drivers/net/cpfl/cpfl_rxtx_vec_common.h | 21 +- 11 files changed, 1652 insertions(+), 119 deletions(-)