]> git.droids-corp.org - dpdk.git/commitdiff
ethdev: deprecate attach and detach functions
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 11 Jul 2018 14:14:09 +0000 (15:14 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 5 Aug 2018 22:52:21 +0000 (00:52 +0200)
These functions are buggy from the very beginning and should not be used.
Generic EAL hotplug mechanisms should be used instead.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
app/test-pmd/Makefile
app/test-pmd/meson.build
doc/guides/rel_notes/deprecation.rst
lib/librte_ethdev/rte_ethdev.h

index f7880783721f7eda3ec8572afce37d8cd506c5ff..2b4d604b8157c7d7751aa90ea266ea8604b267ec 100644 (file)
@@ -13,6 +13,7 @@ APP = testpmd
 CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
+CFLAGS += -Wno-deprecated-declarations
 
 #
 # all source are stored in SRCS-y
index 55539baa9bb0a9d05f368a26b9e1d7db9b052ab1..a0b3be07f05b87e1b5ffdc472492b9907e8d8141 100644 (file)
@@ -4,6 +4,7 @@
 # override default name to drop the hyphen
 name = 'testpmd'
 allow_experimental_apis = true
+cflags += '-Wno-deprecated-declarations'
 sources = files('cmdline.c',
        'cmdline_flow.c',
        'cmdline_mtr.c',
index 14714fe941d5c197210ecfb23b23c2ce7a0df320..32c035e0c51623e46c71fb8e404f0ffb30877143 100644 (file)
@@ -62,6 +62,13 @@ Deprecation Notices
   Target release for removal of the legacy API will be defined once most
   PMDs have switched to rte_flow.
 
+* ethdev: In v18.11 ``rte_eth_dev_attach()`` and ``rte_eth_dev_detach()``
+  will be removed.
+  Hotplug functions ``rte_eal_hotplug_add()`` and ``rte_eal_hotplug_remove()``
+  should be used instread.
+  Function ``rte_eth_dev_get_port_by_name()`` may be used to find
+  identifier of the added port.
+
 * pdump: As we changed to use generic IPC, some changes in APIs and structure
   are expected in subsequent release.
 
index cacd76ec6a703cdaaac3e0f1f50f24794f20bd4d..7070e9ab408fd0b4569c2c8b33a3f41468ae7d42 100644 (file)
@@ -1431,6 +1431,7 @@ uint16_t __rte_experimental rte_eth_dev_count_total(void);
  * @return
  *  0 on success and port_id is filled, negative on error
  */
+__rte_deprecated
 int rte_eth_dev_attach(const char *devargs, uint16_t *port_id);
 
 /**
@@ -1446,6 +1447,7 @@ int rte_eth_dev_attach(const char *devargs, uint16_t *port_id);
  * @return
  *  0 on success and devname is filled, negative on error
  */
+__rte_deprecated
 int rte_eth_dev_detach(uint16_t port_id, char *devname);
 
 /**