From patchwork Tue Apr 12 16:16:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhichao Zeng X-Patchwork-Id: 109603 X-Patchwork-Delegate: qi.z.zhang@intel.com 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 B59FEA0506; Tue, 12 Apr 2022 10:22:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5905241611; Tue, 12 Apr 2022 10:22:07 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 7854A410E1 for ; Tue, 12 Apr 2022 10:22:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649751725; x=1681287725; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/DzvkdF4tVhVfocMH58T541Jgt//IgyzeJvpFI4uO0w=; b=XVQtO7k/ZsPCkhsfYHFSemZg/AAYHpPm7aDiokh9YRPaR95/t3zADnk8 KvFE8Ce/KLEFLL7026uFG1rOdtbweo+gdPefUooMVgVCaJXLucXUcnaBm 86Embj5+x2vMyxuSbX0v5BmAblWpepdmFguf8q+ZbZTxiJcXrjYXKKWoX uPRKFR1m7MyRIUhRkxiN8tgAnZ5r3bVx/MsDs+eKhpGqkeFHv+mvsslqn qf/BezsQ8dnQDv0wgX5qDeR8TLl4dVWEKHVFhxsy72/cbOHs+MCypwzVD 4H4hmZhyGNBz3XIqry66UVaVZ3A6+W4/LbP9L7n1FOAS/UdcMK3i2ahb5 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10314"; a="259910669" X-IronPort-AV: E=Sophos;i="5.90,253,1643702400"; d="scan'208";a="259910669" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2022 01:22:04 -0700 X-IronPort-AV: E=Sophos;i="5.90,253,1643702400"; d="scan'208";a="572654939" Received: from unknown (HELO localhost.localdomain) ([10.239.251.103]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2022 01:22:02 -0700 From: zhichaox.zeng@intel.com To: haiyue.wang@intel.com, dev@dpdk.org Cc: zhichao zeng Subject: [DPDK v2] net/ixgbe: promote MDIO API Date: Tue, 12 Apr 2022 16:16:05 +0000 Message-Id: <20220412161605.837191-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220412142706.831243-1-zhichaox.zeng@intel.com> References: <20220412142706.831243-1-zhichaox.zeng@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: zhichao zeng Promote the MDIO APIs to be stable. Signed-off-by: zhichao zeng --- drivers/net/ixgbe/rte_pmd_ixgbe.h | 20 +++++--------------- drivers/net/ixgbe/version.map | 10 +++++----- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/drivers/net/ixgbe/rte_pmd_ixgbe.h b/drivers/net/ixgbe/rte_pmd_ixgbe.h index eef6f6661c..4f1fe6029d 100644 --- a/drivers/net/ixgbe/rte_pmd_ixgbe.h +++ b/drivers/net/ixgbe/rte_pmd_ixgbe.h @@ -586,9 +586,7 @@ int rte_pmd_ixgbe_bypass_wd_reset(uint16_t port); * - (-ENODEV) if *port* invalid. * - (IXGBE_ERR_SWFW_SYNC) If sw/fw semaphore acquisition failed */ -__rte_experimental -int -rte_pmd_ixgbe_mdio_lock(uint16_t port); +int rte_pmd_ixgbe_mdio_lock(uint16_t port); /** * Release swfw semaphore lock used for MDIO access @@ -600,9 +598,7 @@ rte_pmd_ixgbe_mdio_lock(uint16_t port); * - (-ENOTSUP) if hardware doesn't support. * - (-ENODEV) if *port* invalid. */ -__rte_experimental -int -rte_pmd_ixgbe_mdio_unlock(uint16_t port); +int rte_pmd_ixgbe_mdio_unlock(uint16_t port); /** * Read PHY register using MDIO without MDIO lock @@ -622,9 +618,7 @@ rte_pmd_ixgbe_mdio_unlock(uint16_t port); * - (-ENODEV) if *port* invalid. * - (IXGBE_ERR_PHY) If PHY read command failed */ -__rte_experimental -int -rte_pmd_ixgbe_mdio_unlocked_read(uint16_t port, uint32_t reg_addr, +int rte_pmd_ixgbe_mdio_unlocked_read(uint16_t port, uint32_t reg_addr, uint32_t dev_type, uint16_t *phy_data); /** @@ -646,9 +640,7 @@ rte_pmd_ixgbe_mdio_unlocked_read(uint16_t port, uint32_t reg_addr, * - (-ENODEV) if *port* invalid. * - (IXGBE_ERR_PHY) If PHY read command failed */ -__rte_experimental -int -rte_pmd_ixgbe_mdio_unlocked_write(uint16_t port, uint32_t reg_addr, +int rte_pmd_ixgbe_mdio_unlocked_write(uint16_t port, uint32_t reg_addr, uint32_t dev_type, uint16_t phy_data); /** @@ -725,9 +717,7 @@ enum { * - (-ENODEV) if *port* invalid. * - (-ENOTSUP) if hardware doesn't support this feature. */ -__rte_experimental -int -rte_pmd_ixgbe_upd_fctrl_sbp(uint16_t port, int enable); +int rte_pmd_ixgbe_upd_fctrl_sbp(uint16_t port, int enable); /** * Get port fdir info diff --git a/drivers/net/ixgbe/version.map b/drivers/net/ixgbe/version.map index bca5cc5826..f0f29d8749 100644 --- a/drivers/net/ixgbe/version.map +++ b/drivers/net/ixgbe/version.map @@ -16,6 +16,10 @@ DPDK_22 { rte_pmd_ixgbe_macsec_enable; rte_pmd_ixgbe_macsec_select_rxsa; rte_pmd_ixgbe_macsec_select_txsa; + rte_pmd_ixgbe_mdio_lock; + rte_pmd_ixgbe_mdio_unlock; + rte_pmd_ixgbe_mdio_unlocked_read; + rte_pmd_ixgbe_mdio_unlocked_write; rte_pmd_ixgbe_ping_vf; rte_pmd_ixgbe_set_all_queues_drop_en; rte_pmd_ixgbe_set_tc_bw_alloc; @@ -31,6 +35,7 @@ DPDK_22 { rte_pmd_ixgbe_set_vf_vlan_filter; rte_pmd_ixgbe_set_vf_vlan_insert; rte_pmd_ixgbe_set_vf_vlan_stripq; + rte_pmd_ixgbe_upd_fctrl_sbp; local: *; }; @@ -40,9 +45,4 @@ EXPERIMENTAL { rte_pmd_ixgbe_get_fdir_info; rte_pmd_ixgbe_get_fdir_stats; - rte_pmd_ixgbe_mdio_lock; - rte_pmd_ixgbe_mdio_unlock; - rte_pmd_ixgbe_mdio_unlocked_read; - rte_pmd_ixgbe_mdio_unlocked_write; - rte_pmd_ixgbe_upd_fctrl_sbp; };