ethdev: promote device removal check function as stable
authorThomas Monjalon <thomas@monjalon.net>
Thu, 28 Oct 2021 08:35:13 +0000 (10:35 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Nov 2021 10:11:28 +0000 (11:11 +0100)
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 <thomas@monjalon.net>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/ethdev/rte_ethdev.h
lib/ethdev/version.map

index 5f803ad..096b676 100644 (file)
@@ -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);
 
index e1abe99..c2fb066 100644 (file)
@@ -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;