ethdev: promote experimental API's to stable
PATCH 1/1 ethdev: promote experimental API's to stable
Several API's in ethdev have been marked as experimental (some as old as 19.11). There is no firm policy but any API that has been experimental for since the last LTS is good candidate to be stable.
APIs added in 25.11 or later are left as experimental for another release cycle.
--- doc/guides/rel_notes/release_26_07.rst | 55 ++++++ lib/ethdev/rte_ethdev.c | 88 +++++----- lib/ethdev/rte_ethdev.h | 233 ------------------------- lib/ethdev/rte_ethdev_cman.c | 8 +- 4 files changed, 103 insertions(+), 281 deletions(-)
doc/guides/rel_notes/release_26_07.rst +55 -0
@@ -111,6 +111,61 @@ API Changes Also, make sure to start the actual text at the margin. ======================================================= +* **ethdev: promoted several APIs from experimental to stable.** + + The following ethdev APIs are no longer marked experimental: + + * ``rte_eth_buffer_split_get_supported_hdr_ptypes`` + * ``rte_eth_cman_config_get`` + * ``rte_eth_cman_config_init`` + * ``rte_eth_cman_config_set`` + * ``rte_eth_cman_info_get`` + * ``rte_eth_dev_capability_name`` + * ``rte_eth_dev_conf_get`` + * ``rte_eth_dev_count_aggr_ports`` + * ``rte_eth_dev_get_module_eeprom`` + * ``rte_eth_dev_get_module_info`` + * ``rte_eth_dev_get_reg_info_ext`` + * ``rte_eth_dev_hairpin_capability_get`` + * ``rte_eth_dev_map_aggr_tx_affinity`` + * ``rte_eth_dev_priority_flow_ctrl_queue_configure`` + * ``rte_eth_dev_priority_flow_ctrl_queue_info_get`` + * ``rte_eth_dev_priv_dump`` + * ``rte_eth_dev_rss_algo_name`` + * ``rte_eth_fec_get`` + * ``rte_eth_fec_get_capability`` + * ``rte_eth_fec_set`` + * ``rte_eth_find_rss_algo`` + * ``rte_eth_get_monitor_addr`` + * ``rte_eth_hairpin_bind`` + * ``rte_eth_hairpin_get_peer_ports`` + * ``rte_eth_hairpin_unbind`` + * ``rte_eth_ip_reassembly_capability_get`` + * ``rte_eth_ip_reassembly_conf_get`` + * ``rte_eth_ip_reassembly_conf_set`` + * ``rte_eth_link_speed_to_str`` + * ``rte_eth_link_to_str`` + * ``rte_eth_macaddrs_get`` + * ``rte_eth_read_clock`` + * ``rte_eth_recycle_mbufs`` + * ``rte_eth_recycle_rx_queue_info_get`` + * ``rte_eth_representor_info_get`` + * ``rte_eth_rx_avail_thresh_query`` + * ``rte_eth_rx_avail_thresh_set`` + * ``rte_eth_rx_descriptor_dump`` + * ``rte_eth_rx_hairpin_queue_setup`` + * ``rte_eth_rx_queue_is_valid`` + * ``rte_eth_speed_lanes_get`` + * ``rte_eth_speed_lanes_get_capability`` + * ``rte_eth_speed_lanes_set`` + * ``rte_eth_timesync_adjust_freq`` + * ``rte_eth_tx_descriptor_dump`` + * ``rte_eth_tx_hairpin_queue_setup`` + * ``rte_eth_tx_queue_count`` + * ``rte_eth_tx_queue_is_valid`` + * ``rte_eth_xstats_query_state`` + * ``rte_eth_xstats_set_counter`` + ABI Changes -----------
lib/ethdev/rte_ethdev.c +44 -44
352 lines not on this page · raw message
lib/ethdev/rte_ethdev.h +0 -233
840 lines not on this page · raw message
lib/ethdev/rte_ethdev_cman.c +4 -4
@@ -12,7 +12,7 @@#include "ethdev_trace.h" /* Get congestion management information for a port */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_cman_info_get, 22.11) +RTE_EXPORT_SYMBOL (rte_eth_cman_info_get) intrte_eth_cman_info_get (uint16_t port_id,struct rte_eth_cman_info *info) {
@@ -41,7 +41,7 @@ rte_eth_cman_info_get(uint16_t port_id, struct rte_eth_cman_info *info) }/* Initialize congestion management structure with default values */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_cman_config_init, 22.11) +RTE_EXPORT_SYMBOL (rte_eth_cman_config_init) intrte_eth_cman_config_init (uint16_t port_id,struct rte_eth_cman_config *config) {
@@ -70,7 +70,7 @@ rte_eth_cman_config_init(uint16_t port_id, struct rte_eth_cman_config *config) }/* Configure congestion management on a port */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_cman_config_set, 22.11) +RTE_EXPORT_SYMBOL (rte_eth_cman_config_set) intrte_eth_cman_config_set (uint16_t port_id,const struct rte_eth_cman_config *config) {
@@ -98,7 +98,7 @@ rte_eth_cman_config_set(uint16_t port_id, const struct rte_eth_cman_config *conf }/* Retrieve congestion management configuration of a port */ -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_cman_config_get, 22.11) +RTE_EXPORT_SYMBOL (rte_eth_cman_config_get) intrte_eth_cman_config_get (uint16_t port_id,struct rte_eth_cman_config *config) {
Signature · 1 line
2.53.0
Quoted 9 lines · Stephen Hemminger
Several API's in ethdev have been marked as experimental (some as old as 19.11). There is no firm policy but any API that has been experimental for since the last LTS is good candidate to be stable.
APIs added in 25.11 or later are left as experimental for another release cycle.
Signed-off-by Stephen Hemminger <[email protected]>
Quoted 1 line · Stephen Hemminger
+ * ``rte_eth_macaddrs_get``
I am not enthousiastic on marking this stable.
It more or less sets in stone that the mac addresses are stored in an array.
The initial goal was to retrieve all mac addresses of a port (21.11 release note entry):
"""
* **Added support to get all MAC addresses of a device.**
Added ``rte_eth_macaddrs_get`` to allow a user to retrieve all
Ethernet
addresses assigned to a given Ethernet port.
"""
And this is how it is used in testpmd.
https://git.dpdk.org/dpdk/tree/app/test-pmd/config.c#n7618
I'd rather see an API using an iterator that abstracts how macs are stored. That would also make it possible to skip null macs (which I find ugly in existing code).
RTE_ETH_DEV_FOREACH_MAC(mac, port_id) {
}
Signature · 1 line
David Marchand
Quoted 6 lines · On Mon, 1 Jun 2026 13:55:13 +0200 David Marchand <[email protected]>…
Quoted 1 line · Stephen Hemminger
+ * ``rte_eth_macaddrs_get``
I am not enthousiastic on marking this stable.
It more or less sets in stone that the mac addresses are stored in an array.
So either we kill it or make it stable, having experimental API for so long seems like a todo list that never gets done.
Quoted 6 lines · On Mon, 1 Jun 2026 13:55:13 +0200 David Marchand <[email protected]>…
Quoted 1 line · Stephen Hemminger
+ * ``rte_eth_macaddrs_get``
I am not enthousiastic on marking this stable.
It more or less sets in stone that the mac addresses are stored in an array.
The device could store the mac addresses in any form.
Your right that right now the implementation of the API depends on dev->data->mac_addrs. But if that changed, having API to walk the macs would be good.
Maybe rte_eth_macaddrs_get should scrub out empty zero slots now?