numam-dpdk/drivers/net/failsafe
Thomas Monjalon 911462eb4a eal: simplify parameters of hotplug functions
All information about a device to probe can be grouped
in a common string, which is what we usually call devargs.
An application should not have to parse this string before
calling the EAL probe function.
And the syntax could evolve to be more complex and support
matching multiple devices in one string.
That's why the bus name and device name should be removed from
rte_eal_hotplug_add().
Instead of changing this function, a simpler one is added
and used in the old one, which may be deprecated later.

When removing a device, we already know its rte_device handle
which can be directly passed as parameter of rte_eal_hotplug_remove().
If the rte_device is not known, it can be retrieved with the devargs,
by iterating in the device list (future RTE_DEV_FOREACH()).
Similarly to the probing case, a new function is added
and used in the old one, which may be deprecated later.
The new function is used in failsafe, because the replacement is easy.

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>
2018-10-11 14:09:24 +02:00
..
failsafe_args.c devargs: add non-variadic parsing function 2018-07-15 23:42:10 +02:00
failsafe_eal.c eal: simplify parameters of hotplug functions 2018-10-11 14:09:24 +02:00
failsafe_ether.c eal: simplify parameters of hotplug functions 2018-10-11 14:09:24 +02:00
failsafe_flow.c ethdev: add shared counter to flow API 2018-04-27 18:00:57 +01:00
failsafe_intr.c net/failsafe: support runtime Rx queues setup 2018-09-28 01:41:02 +02:00
failsafe_ops.c net/failsafe: support multicast address list set 2018-09-28 01:41:02 +02:00
failsafe_private.h net/failsafe: support multicast address list set 2018-09-28 01:41:02 +02:00
failsafe_rxtx.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
failsafe.c net/failsafe: support multicast address list set 2018-09-28 01:41:02 +02:00
Makefile use SPDX license tag in Mellanox copyrighted files 2018-05-25 10:33:33 +02:00
meson.build net/failsafe: add to meson build 2018-06-14 19:27:50 +02:00
rte_pmd_failsafe_version.map net/failsafe: add fail-safe PMD 2017-07-19 16:25:42 +03:00