Skip to contentSkip to conversation

ethdev: promote device removal check function as stable

PATCH Applied Thomas Monjalon 4 participants 4 messages Oct 28, 2021 – Nov 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 lib/ethdev/rte_ethdev.h | 4 ----
 lib/ethdev/version.map  | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)
lib/ethdev/rte_ethdev.h +0 -4
index 24f30b4b28..09d60351a3 100644
@@ -2385,9 +2385,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
@@ -2395,7 +2392,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);
 
lib/ethdev/version.map +1 -1
index e1abe99729..c2fb0669a4 100644
@@ -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;
Signature · 1 line
2.33.0
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Thomas Monjalon

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.

---
  lib/ethdev/rte_ethdev.h | 4 ----
  lib/ethdev/version.map  | 2 +-
  2 files changed, 1 insertion(+), 5 deletions(-)
#2 lore raw
Quoted 8 lines · Ray
Quoted 5 lines · Thomas Monjalon

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.

Quoted 7 lines
Quoted 6 lines

---
  lib/ethdev/rte_ethdev.h | 4 ----
  lib/ethdev/version.map  | 2 +-

  2 files changed, 1 insertion(+), 5 deletions(-)
Acked-by Applied
#3 lore raw
Quoted 15 lines · Andrew Rybchenko
Quoted 14 lines · Ray
Quoted 11 lines · Thomas Monjalon

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.

---
  lib/ethdev/rte_ethdev.h | 4 ----
  lib/ethdev/version.map  | 2 +-

  2 files changed, 1 insertion(+), 5 deletions(-)
Quoted 4 lines
Quoted 1 line

Applied to dpdk-next-net/main, thanks.