ethdev: make offload name API non-experimental

The offload name functions are useful, but since they are
marked experimental they can not be used by upstream projects.
For example, VPP duplicates the same table in its code.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Stephen Hemminger 2018-10-19 10:35:32 -07:00 committed by Ferruh Yigit
parent 4a5bc4e201
commit f4336b4388
3 changed files with 12 additions and 12 deletions

View File

@ -1054,7 +1054,7 @@ rte_eth_speed_bitflag(uint32_t speed, int duplex)
}
}
const char * __rte_experimental
const char *
rte_eth_dev_rx_offload_name(uint64_t offload)
{
const char *name = "UNKNOWN";
@ -1070,7 +1070,7 @@ rte_eth_dev_rx_offload_name(uint64_t offload)
return name;
}
const char * __rte_experimental
const char *
rte_eth_dev_tx_offload_name(uint64_t offload)
{
const char *name = "UNKNOWN";

View File

@ -1523,9 +1523,6 @@ uint16_t __rte_experimental rte_eth_dev_count_total(void);
uint32_t rte_eth_speed_bitflag(uint32_t speed, int duplex);
/**
* @warning
* @b EXPERIMENTAL: this API may change without prior notice
*
* Get DEV_RX_OFFLOAD_* flag name.
*
* @param offload
@ -1533,12 +1530,9 @@ uint32_t rte_eth_speed_bitflag(uint32_t speed, int duplex);
* @return
* Offload name or 'UNKNOWN' if the flag cannot be recognised.
*/
const char * __rte_experimental rte_eth_dev_rx_offload_name(uint64_t offload);
const char *rte_eth_dev_rx_offload_name(uint64_t offload);
/**
* @warning
* @b EXPERIMENTAL: this API may change without prior notice
*
* Get DEV_TX_OFFLOAD_* flag name.
*
* @param offload
@ -1546,7 +1540,7 @@ const char * __rte_experimental rte_eth_dev_rx_offload_name(uint64_t offload);
* @return
* Offload name or 'UNKNOWN' if the flag cannot be recognised.
*/
const char * __rte_experimental rte_eth_dev_tx_offload_name(uint64_t offload);
const char *rte_eth_dev_tx_offload_name(uint64_t offload);
/**
* Configure an Ethernet device.

View File

@ -218,6 +218,14 @@ DPDK_18.08 {
} DPDK_18.05;
DPDK_18.11 {
global:
rte_eth_dev_rx_offload_name;
rte_eth_dev_tx_offload_name;
} DPDK_18.08;
EXPERIMENTAL {
global:
@ -234,8 +242,6 @@ EXPERIMENTAL {
rte_eth_dev_owner_set;
rte_eth_dev_owner_unset;
rte_eth_dev_rx_intr_ctl_q_get_fd;
rte_eth_dev_rx_offload_name;
rte_eth_dev_tx_offload_name;
rte_eth_iterator_cleanup;
rte_eth_iterator_init;
rte_eth_iterator_next;