[PATCH 18/22] ethdev: promote speed lanes API to stable
Stephen Hemminger
stephen at networkplumber.org
Tue Sep 1 22:23:17 CEST 2026
The speed lanes configuration was added in v24.11 to query and set
the number of lanes used by a link. The three functions are
unchanged since.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
doc/guides/rel_notes/release_26_11.rst | 3 +++
lib/ethdev/rte_ethdev.c | 6 +++---
lib/ethdev/rte_ethdev.h | 12 ------------
3 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst
index 2b085dcd51..01030cefe5 100644
--- a/doc/guides/rel_notes/release_26_11.rst
+++ b/doc/guides/rel_notes/release_26_11.rst
@@ -142,6 +142,9 @@ API Changes
``rte_eth_rx_descriptor_dump``, ``rte_eth_tx_descriptor_dump``,
``rte_eth_dev_rss_algo_name``, ``rte_eth_find_rss_algo`` and
``rte_eth_dev_get_reg_info_ext``
+ * speed lanes:
+ ``rte_eth_speed_lanes_get``, ``rte_eth_speed_lanes_set`` and
+ ``rte_eth_speed_lanes_get_capability``
ABI Changes
diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c
index 0dc7e3b5d2..783fb817c2 100644
--- a/lib/ethdev/rte_ethdev.c
+++ b/lib/ethdev/rte_ethdev.c
@@ -1929,7 +1929,7 @@ rte_eth_dev_set_link_down(uint16_t port_id)
return ret;
}
-RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_speed_lanes_get, 24.11)
+RTE_EXPORT_SYMBOL(rte_eth_speed_lanes_get)
int
rte_eth_speed_lanes_get(uint16_t port_id, uint32_t *lane)
{
@@ -1943,7 +1943,7 @@ rte_eth_speed_lanes_get(uint16_t port_id, uint32_t *lane)
return eth_err(port_id, dev->dev_ops->speed_lanes_get(dev, lane));
}
-RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_speed_lanes_get_capability, 24.11)
+RTE_EXPORT_SYMBOL(rte_eth_speed_lanes_get_capability)
int
rte_eth_speed_lanes_get_capability(uint16_t port_id,
struct rte_eth_speed_lanes_capa *speed_lanes_capa,
@@ -1970,7 +1970,7 @@ rte_eth_speed_lanes_get_capability(uint16_t port_id,
return ret;
}
-RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_speed_lanes_set, 24.11)
+RTE_EXPORT_SYMBOL(rte_eth_speed_lanes_set)
int
rte_eth_speed_lanes_set(uint16_t port_id, uint32_t speed_lanes_capa)
{
diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h
index b75cd072d9..dfb9cfd614 100644
--- a/lib/ethdev/rte_ethdev.h
+++ b/lib/ethdev/rte_ethdev.h
@@ -3144,9 +3144,6 @@ int rte_eth_link_to_str(char *str, size_t len,
const struct rte_eth_link *eth_link);
/**
- * @warning
- * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get Active lanes.
*
* @param port_id
@@ -3163,13 +3160,9 @@ int rte_eth_link_to_str(char *str, size_t len,
* - (-EIO) if device is removed.
* - (-ENODEV) if *port_id* invalid.
*/
-__rte_experimental
int rte_eth_speed_lanes_get(uint16_t port_id, uint32_t *lanes);
/**
- * @warning
- * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Set speed lanes supported by the NIC.
*
* @param port_id
@@ -3187,13 +3180,9 @@ int rte_eth_speed_lanes_get(uint16_t port_id, uint32_t *lanes);
* - (-ENODEV) if *port_id* invalid.
* - (-EINVAL) if *lanes* count not in speeds capability list.
*/
-__rte_experimental
int rte_eth_speed_lanes_set(uint16_t port_id, uint32_t speed_lanes);
/**
- * @warning
- * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
- *
* Get speed lanes supported by the NIC.
*
* @param port_id
@@ -3212,7 +3201,6 @@ int rte_eth_speed_lanes_set(uint16_t port_id, uint32_t speed_lanes);
* - (-ENODEV) if *port_id* invalid.
* - (-EINVAL) if *speed_lanes* invalid
*/
-__rte_experimental
int rte_eth_speed_lanes_get_capability(uint16_t port_id,
struct rte_eth_speed_lanes_capa *speed_lanes_capa,
unsigned int num);
--
2.53.0
More information about the dev
mailing list