rte_eth_dev_get_module_info() and rte_eth_dev_get_module_eeprom() were added in v18.05 to report SFF module identification and dump the module EEPROM. Both are widely implemented by PMDs and their signatures have not changed since they were introduced.
Signed-off-by: Stephen Hemminger <[email protected]> --- doc/guides/rel_notes/release_26_11.rst | 1 + lib/ethdev/rte_ethdev.c | 4 ++-- lib/ethdev/rte_ethdev.h | 8 -------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst index 03d4eaba40..8c533d87e8 100644 --- a/doc/guides/rel_notes/release_26_11.rst +++ b/doc/guides/rel_notes/release_26_11.rst @@ -98,6 +98,7 @@ API Changes * ethdev: Promoted the following API from experimental to stable: * meter (MTR) and policing: ``rte_mtr_*`` + * SFF: ``rte_eth_dev_get_module_info`` and ``rte_eth_dev_get_module_eeprom`` ABI Changes diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index 9efeaf77cb..78ad12c2c0 100644 --- a/lib/ethdev/rte_ethdev.c +++ b/lib/ethdev/rte_ethdev.c @@ -6952,7 +6952,7 @@ rte_eth_dev_set_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info) return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_dev_get_module_info, 18.05) +RTE_EXPORT_SYMBOL(rte_eth_dev_get_module_info) int rte_eth_dev_get_module_info(uint16_t port_id, struct rte_eth_dev_module_info *modinfo) @@ -6979,7 +6979,7 @@ rte_eth_dev_get_module_info(uint16_t port_id, return ret; } -RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_eth_dev_get_module_eeprom, 18.05) +RTE_EXPORT_SYMBOL(rte_eth_dev_get_module_eeprom) int rte_eth_dev_get_module_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info) diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h index ee400b386f..7f0333cbd1 100644 --- a/lib/ethdev/rte_ethdev.h +++ b/lib/ethdev/rte_ethdev.h @@ -5392,9 +5392,6 @@ int rte_eth_dev_get_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info); int rte_eth_dev_set_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info); /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Retrieve the type and size of plugin module EEPROM * * @param port_id @@ -5409,15 +5406,11 @@ int rte_eth_dev_set_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info); * - (-EIO) if device is removed. * - others depends on the specific operations implementation. */ -__rte_experimental int rte_eth_dev_get_module_info(uint16_t port_id, struct rte_eth_dev_module_info *modinfo) __rte_warn_unused_result; /** - * @warning - * @b EXPERIMENTAL: this API may change without prior notice. - * * Retrieve the data of plugin module EEPROM * * @param port_id @@ -5433,7 +5426,6 @@ rte_eth_dev_get_module_info(uint16_t port_id, struct rte_eth_dev_module_info *mo * - (-EIO) if device is removed. * - others depends on the specific operations implementation. */ -__rte_experimental int rte_eth_dev_get_module_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info) __rte_warn_unused_result; -- 2.53.0

