eal: remove experimental flag of hotplug functions

These functions are quite old and are the only available replacement
for the deprecated attach/detach functions.

Note: some new functions may (again) replace these hotplug functions,
in future, with better parameters.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Thomas Monjalon 2018-09-26 23:22:27 +02:00
parent 6844d146ff
commit 6878cd397d
3 changed files with 8 additions and 14 deletions

View File

@ -127,8 +127,9 @@ int rte_eal_dev_detach(struct rte_device *dev)
return ret;
}
int __rte_experimental rte_eal_hotplug_add(const char *busname, const char *devname,
const char *devargs)
int
rte_eal_hotplug_add(const char *busname, const char *devname,
const char *devargs)
{
struct rte_bus *bus;
struct rte_device *dev;
@ -193,7 +194,7 @@ int __rte_experimental rte_eal_hotplug_add(const char *busname, const char *devn
return ret;
}
int __rte_experimental
int
rte_eal_hotplug_remove(const char *busname, const char *devname)
{
struct rte_bus *bus;

View File

@ -190,9 +190,6 @@ __rte_deprecated
int rte_eal_dev_detach(struct rte_device *dev);
/**
* @warning
* @b EXPERIMENTAL: this API may change without prior notice
*
* Hotplug add a given device to a specific bus.
*
* @param busname
@ -205,13 +202,10 @@ int rte_eal_dev_detach(struct rte_device *dev);
* @return
* 0 on success, negative on error.
*/
int __rte_experimental rte_eal_hotplug_add(const char *busname, const char *devname,
int rte_eal_hotplug_add(const char *busname, const char *devname,
const char *devargs);
/**
* @warning
* @b EXPERIMENTAL: this API may change without prior notice
*
* Hotplug remove a given device from a specific bus.
*
* @param busname
@ -221,8 +215,7 @@ int __rte_experimental rte_eal_hotplug_add(const char *busname, const char *devn
* @return
* 0 on success, negative on error.
*/
int __rte_experimental rte_eal_hotplug_remove(const char *busname,
const char *devname);
int rte_eal_hotplug_remove(const char *busname, const char *devname);
/**
* Device comparison function.

View File

@ -261,6 +261,8 @@ DPDK_18.08 {
DPDK_18.11 {
global:
rte_eal_hotplug_add;
rte_eal_hotplug_remove;
rte_strscpy;
} DPDK_18.08;
@ -288,8 +290,6 @@ EXPERIMENTAL {
rte_devargs_remove;
rte_devargs_type_count;
rte_eal_cleanup;
rte_eal_hotplug_add;
rte_eal_hotplug_remove;
rte_fbarray_attach;
rte_fbarray_destroy;
rte_fbarray_detach;