From: Andrew Rybchenko Date: Wed, 11 Jul 2018 14:14:10 +0000 (+0100) Subject: eal: deprecate device attach and detach functions X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aed1a766ed329e2865b92d8923cf84758220c975;p=dpdk.git eal: deprecate device attach and detach functions Hotplug functions should be used directly to add and remove devices. Signed-off-by: Andrew Rybchenko Acked-by: Thomas Monjalon Acked-by: Stephen Hemminger --- diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 32c035e0c5..87be8d62fc 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -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. diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index a603f486c0..b80a805983 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -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); /**