From patchwork Tue Sep 12 16:26:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xing, Beilei" X-Patchwork-Id: 130 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 5B67E4257B; Tue, 12 Sep 2023 10:08:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DACA3402AC; Tue, 12 Sep 2023 10:08:05 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id DB5E84027E for ; Tue, 12 Sep 2023 10:08:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694506084; x=1726042084; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LxqlyhdQCIBcFHriDsNfNgyUDDJTYFIAgUO7o7ccO5U=; b=KY3/1EfslmM7iMlk2zscl07Uewl4f6c0Ms9DCGqx9hKPF9VbF7nXYdnf o4p9uTzB2PzUSToLt0t34xidyes/e5uu1RSocNDj+9UU2ZUhN6QDPkVbU RrB/JpPLMN3lQ8O3PFN/jYZXjCfBypJEo22V/YFW7thN5TDeTu1TvtGYN h7FADlY1RsLmYr5aueKHt/txATzuPYHJ7oyRULbBFUgR2CvH4VF4yFUEE 3PzeeSZm/RDpAQw9W7E2Qx0IKBmMRHj5gFRGZFOzX4S1t2vvEioHNMsdT LxfZYm1WJ/V/5aTtovu2LWzD4bSoqvHpq/whMe4lrmOIslxVZKCQ+h4uI Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="375639554" X-IronPort-AV: E=Sophos;i="6.02,245,1688454000"; d="scan'208";a="375639554" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 01:08:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="858702547" X-IronPort-AV: E=Sophos;i="6.02,245,1688454000"; d="scan'208";a="858702547" Received: from dpdk-beileix-icelake.sh.intel.com ([10.67.116.248]) by fmsmga002.fm.intel.com with ESMTP; 12 Sep 2023 01:08:01 -0700 From: beilei.xing@intel.com To: jingjing.wu@intel.com Cc: dev@dpdk.org, mingxia.liu@intel.com, Beilei Xing Subject: [PATCH v5 00/10] net/cpfl: support port representor Date: Tue, 12 Sep 2023 16:26:30 +0000 Message-Id: <20230912162640.1439383-1-beilei.xing@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230908111701.1022724-1-beilei.xing@intel.com> References: <20230908111701.1022724-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 1. code refine for representor support 2. support port representor v5 changes: - refine cpfl_vport_info structure - refine cpfl_repr_link_update function - refine cpfl_repr_create function v4 changes: - change the patch order - merge two patches - revert enum change v3 changes: - Refine commit log. - Add macro and enum. - Refine doc. - Refine error handling. v2 changes: - Remove representor data path. - Fix coding style. Beilei Xing (10): net/cpfl: refine devargs parse and process net/cpfl: introduce interface structure net/cpfl: refine handle virtual channel message net/cpfl: introduce CP channel API net/cpfl: enable vport mapping net/cpfl: support vport list/info get net/cpfl: parse representor devargs net/cpfl: support probe again net/cpfl: create port representor net/cpfl: support link update for representor doc/guides/nics/cpfl.rst | 36 ++ doc/guides/rel_notes/release_23_11.rst | 3 + drivers/net/cpfl/cpfl_cpchnl.h | 340 +++++++++++++ drivers/net/cpfl/cpfl_ethdev.c | 621 ++++++++++++++++++++---- drivers/net/cpfl/cpfl_ethdev.h | 91 +++- drivers/net/cpfl/cpfl_representor.c | 632 +++++++++++++++++++++++++ drivers/net/cpfl/cpfl_representor.h | 26 + drivers/net/cpfl/cpfl_vchnl.c | 72 +++ drivers/net/cpfl/meson.build | 4 +- 9 files changed, 1719 insertions(+), 106 deletions(-) create mode 100644 drivers/net/cpfl/cpfl_cpchnl.h create mode 100644 drivers/net/cpfl/cpfl_representor.c create mode 100644 drivers/net/cpfl/cpfl_representor.h create mode 100644 drivers/net/cpfl/cpfl_vchnl.c