ethdev: promote sibling iterators to stable
PATCH 1/1 ethdev: promote sibling iterators to stable
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
--- lib/ethdev/rte_ethdev.h | 8 -------- lib/ethdev/version.map | 6 ++---- 2 files changed, 2 insertions(+), 12 deletions(-)
lib/ethdev/rte_ethdev.h +0 -8
@@ -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);
lib/ethdev/version.map +2 -4
@@ -71,7 +71,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;
@@ -157,10 +159,6 @@ EXPERIMENTAL { rte_eth_dev_rx_intr_ctl_q_get_fd; 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;
Signature · 1 line
2.23.0
Quoted 8 lines · David Marchand
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#L1476Signed-off-by David Marchand <[email protected]>
Kinsella, Ray
Acked-byQuoted 5 lines · Andrew Rybchenko
Quoted 4 lines · David Marchand
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.
Quoted 7 lines
Quoted 4 lines
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#L1476Signed-off-by David Marchand <[email protected]>Acked-by Andrew Rybchenko <[email protected]>
Ferruh Yigit
AppliedQuoted 8 lines · Ray
Quoted 5 lines · Andrew Rybchenko
Quoted 4 lines · David Marchand
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.
Quoted 9 lines
Quoted 7 lines
Quoted 4 lines
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#L1476Signed-off-by David Marchand <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ray Kinsella <[email protected]>
Applied to dpdk-next-net/main, thanks.