The forward error correction API was added in v20.11 to query the supported FEC modes of a port and to get and set the current mode. The three functions have kept their prototypes since, and are implemented by several PMDs.
Signed-off-by: Stephen Hemminger <[email protected]> --- doc/guides/rel_notes/release_26_11.rst | 1 + lib/ethdev/rte_ethdev.c | 6 +++--- lib/ethdev/rte_ethdev.h | 12 ------------ 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst index 57a47ec5f2..c4a9053b59 100644 --- a/doc/guides/rel_notes/release_26_11.rst +++ b/doc/guides/rel_notes/release_26_11.rst @@ -108,6 +108,7 @@ API Changes ``rte_eth_hairpin_get_peer_ports`` * clock: ``rte_eth_read_clock`` * flow dump: ``rte_flow_dev_dump`` + * FEC: ``rte_eth_fec_get_capability``, ``rte_eth_fec_get`` and ``rte_eth_fec_set`` ABI Changes diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index ce1779ba44..d814ee55f9 100644 --- a/lib/ethdev/rte_ethdev.c +++ b/lib/ethdev/rte_ethdev.c @@ -5288,7 +5288,7 @@ rte_eth_led_off(uint16_t port_id) return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_fec_get_capability, 20.11) +RTE_EXPORT_SYMBOL(rte_eth_fec_get_capability) int rte_eth_fec_get_capability(uint16_t port_id, struct rte_eth_fec_capa *speed_fec_capa, @@ -5316,7 +5316,7 @@ rte_eth_fec_get_capability(uint16_t port_id, return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_fec_get, 20.11) +RTE_EXPORT_SYMBOL(rte_eth_fec_get) int rte_eth_fec_get(uint16_t port_id, uint32_t *fec_capa) { @@ -5342,7 +5342,7 @@ rte_eth_fec_get(uint16_t port_id, uint32_t *fec_capa) return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_fec_set, 20.11) +RTE_EXPORT_SYMBOL(rte_eth_fec_set) int rte_eth_fec_set(uint16_t port_id, uint32_t fec_capa) { diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index 7905e01658..41a744059c 100644 --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -4455,9 +4455,6 @@ int rte_eth_led_on(uint16_t port_id); int rte_eth_led_off(uint16_t port_id); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Get Forward Error Correction(FEC) capability. * * @param port_id @@ -4482,15 +4479,11 @@ int rte_eth_led_off(uint16_t port_id); * - (-ENODEV) if *port_id* invalid. * - (-EINVAL) if *num* or *speed_fec_capa* invalid */ -__rte_experimental int rte_eth_fec_get_capability(uint16_t port_id, struct rte_eth_fec_capa *speed_fec_capa, unsigned int num); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Get current Forward Error Correction(FEC) mode. * If link is down and AUTO is enabled, AUTO is returned, otherwise, * configured FEC mode is returned. @@ -4507,13 +4500,9 @@ int rte_eth_fec_get_capability(uint16_t port_id, * - (-EIO) if device is removed. * - (-ENODEV) if *port_id* invalid. */ -__rte_experimental int rte_eth_fec_get(uint16_t port_id, uint32_t *fec_capa); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Set Forward Error Correction(FEC) mode. * * @param port_id @@ -4533,7 +4522,6 @@ int rte_eth_fec_get(uint16_t port_id, uint32_t *fec_capa); * - (-EIO) if device is removed. * - (-ENODEV) if *port_id* invalid. */ -__rte_experimental int rte_eth_fec_set(uint16_t port_id, uint32_t fec_capa); /** -- 2.53.0

