ethdev: promote sibling iterators to stable
authorDavid Marchand <david.marchand@redhat.com>
Mon, 6 Sep 2021 13:02:20 +0000 (15:02 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 15 Sep 2021 09:48:54 +0000 (11:48 +0200)
This API saw no update since its introduction and will help applications
like OVS ([1] and [2]) that currently look at rte_eth_devices[] to
achieve the same.

1: https://github.com/openvswitch/ovs/blob/master/lib/netdev-dpdk.c#L1285
2: https://github.com/openvswitch/ovs/blob/master/lib/netdev-dpdk.c#L1476

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
lib/ethdev/rte_ethdev.h
lib/ethdev/version.map

index 413f69d..bef2417 100644 (file)
@@ -1894,9 +1894,6 @@ uint16_t rte_eth_find_next(uint16_t port_id);
        RTE_ETH_FOREACH_DEV_OWNED_BY(p, RTE_ETH_DEV_NO_OWNER)
 
 /**
- * @warning
- * @b EXPERIMENTAL: this API may change without prior notice.
- *
  * Iterates over ethdev ports of a specified device.
  *
  * @param port_id_start
@@ -1907,7 +1904,6 @@ uint16_t rte_eth_find_next(uint16_t port_id);
  *   Next port id of the device, possibly port_id_start,
  *   RTE_MAX_ETHPORTS if there is none.
  */
-__rte_experimental
 uint16_t
 rte_eth_find_next_of(uint16_t port_id_start,
                const struct rte_device *parent);
@@ -1926,9 +1922,6 @@ rte_eth_find_next_of(uint16_t port_id_start,
                port_id = rte_eth_find_next_of(port_id + 1, parent))
 
 /**
- * @warning
- * @b EXPERIMENTAL: this API may change without prior notice.
- *
  * Iterates over sibling ethdev ports (i.e. sharing the same rte_device).
  *
  * @param port_id_start
@@ -1939,7 +1932,6 @@ rte_eth_find_next_of(uint16_t port_id_start,
  *   Next sibling port id, possibly port_id_start or ref_port_id itself,
  *   RTE_MAX_ETHPORTS if there is none.
  */
-__rte_experimental
 uint16_t
 rte_eth_find_next_sibling(uint16_t port_id_start, uint16_t ref_port_id);
 
index 7cd5b99..904bce6 100644 (file)
@@ -73,7 +73,9 @@ DPDK_22 {
        rte_eth_dev_vlan_filter;
        rte_eth_devices;
        rte_eth_find_next;
+       rte_eth_find_next_of;
        rte_eth_find_next_owned_by;
+       rte_eth_find_next_sibling;
        rte_eth_iterator_cleanup;
        rte_eth_iterator_init;
        rte_eth_iterator_next;
@@ -160,10 +162,6 @@ EXPERIMENTAL {
        # added in 18.11
        rte_flow_conv;
 
-       # added in 19.05
-       rte_eth_find_next_of;
-       rte_eth_find_next_sibling;
-
        # added in 19.08
        rte_eth_read_clock;