From: Thomas Monjalon Date: Wed, 17 Apr 2019 22:59:28 +0000 (+0200) Subject: ethdev: promote function for port count as stable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=998853bf12f8c6390ff8d0190e1151872c37266f;p=dpdk.git ethdev: promote function for port count as stable The function rte_eth_dev_count_total() was introduced one year ago in the release 18.05. It can be declared non experimental in 19.05. Signed-off-by: Thomas Monjalon Acked-by: Ferruh Yigit Acked-by: Andrew Rybchenko --- diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index ba6fc91d1e..d7cfa3d536 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -769,7 +769,7 @@ rte_eth_dev_count_avail(void) return count; } -uint16_t __rte_experimental +uint16_t rte_eth_dev_count_total(void) { uint16_t port, count = 0; diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index ca3a990aee..b8d19c69f6 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -1612,7 +1612,7 @@ uint16_t rte_eth_dev_count_avail(void); * @return * The total count of Ethernet devices. */ -uint16_t __rte_experimental rte_eth_dev_count_total(void); +uint16_t rte_eth_dev_count_total(void); /** * Convert a numerical speed in Mbps to a bitmap flag that can be used in diff --git a/lib/librte_ethdev/rte_ethdev_version.map b/lib/librte_ethdev/rte_ethdev_version.map index b37a4167d7..afcd255991 100644 --- a/lib/librte_ethdev/rte_ethdev_version.map +++ b/lib/librte_ethdev/rte_ethdev_version.map @@ -229,11 +229,17 @@ DPDK_18.11 { } DPDK_18.08; +DPDK_19.05 { + global: + + rte_eth_dev_count_total; + +} DPDK_18.11; + EXPERIMENTAL { global: rte_eth_devargs_parse; - rte_eth_dev_count_total; rte_eth_dev_create; rte_eth_dev_destroy; rte_eth_dev_get_module_eeprom;