From: Thomas Monjalon Date: Thu, 28 Oct 2021 08:35:13 +0000 (+0200) Subject: ethdev: promote device removal check function as stable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=285725d93bd3087a7586ba81a640770da1371500;p=dpdk.git ethdev: promote device removal check function as stable The function rte_eth_dev_is_removed() was introduced in DPDK 18.02, and is integrated in error checks of ethdev library. It is promoted as stable ABI. Signed-off-by: Thomas Monjalon Acked-by: Ray Kinsella Acked-by: Andrew Rybchenko Acked-by: Ferruh Yigit --- diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index 5f803ad1e6..096b676fc1 100644 --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -2395,9 +2395,6 @@ int rte_eth_dev_configure(uint16_t port_id, uint16_t nb_rx_queue, uint16_t nb_tx_queue, const struct rte_eth_conf *eth_conf); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Check if an Ethernet device was physically removed. * * @param port_id @@ -2405,7 +2402,6 @@ int rte_eth_dev_configure(uint16_t port_id, uint16_t nb_rx_queue, * @return * 1 when the Ethernet device is removed, otherwise 0. */ -__rte_experimental int rte_eth_dev_is_removed(uint16_t port_id); diff --git a/lib/ethdev/version.map b/lib/ethdev/version.map index e1abe99729..c2fb0669a4 100644 --- a/lib/ethdev/version.map +++ b/lib/ethdev/version.map @@ -31,6 +31,7 @@ DPDK_22 { rte_eth_dev_get_supported_ptypes; rte_eth_dev_get_vlan_offload; rte_eth_dev_info_get; + rte_eth_dev_is_removed; rte_eth_dev_is_valid_port; rte_eth_dev_logtype; rte_eth_dev_mac_addr_add; @@ -148,7 +149,6 @@ EXPERIMENTAL { rte_mtr_stats_update; # added in 18.02 - rte_eth_dev_is_removed; rte_eth_dev_owner_delete; rte_eth_dev_owner_get; rte_eth_dev_owner_new;