eal: deprecate device attach and detach functions

Hotplug functions should be used directly to add and remove devices.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Andrew Rybchenko 2018-07-11 15:14:10 +01:00 committed by Thomas Monjalon
parent 9f2be5b3db
commit aed1a766ed
2 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,11 @@ Deprecation Notices
Function ``rte_eth_dev_get_port_by_name()`` may be used to find
identifier of the added port.
* eal: In v18.11 ``rte_eal_dev_attach()`` and ``rte_eal_dev_detach()``
will be removed.
Hotplug functions ``rte_eal_hotplug_add()`` and ``rte_eal_hotplug_remove()``
should be used directly.
* pdump: As we changed to use generic IPC, some changes in APIs and structure
are expected in subsequent release.

View File

@ -174,6 +174,7 @@ struct rte_device {
* @return
* 0 on success, negative on error.
*/
__rte_deprecated
int rte_eal_dev_attach(const char *name, const char *devargs);
/**
@ -184,6 +185,7 @@ int rte_eal_dev_attach(const char *name, const char *devargs);
* @return
* 0 on success, negative on error.
*/
__rte_deprecated
int rte_eal_dev_detach(struct rte_device *dev);
/**