devargs: simplify parameters of removal function
authorThomas Monjalon <thomas@monjalon.net>
Wed, 19 Sep 2018 21:55:01 +0000 (23:55 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Oct 2018 12:09:24 +0000 (14:09 +0200)
commit2effa126fbd8d53e0a5d723ac8314c1bb2c3ce9b
tree859585920f53c2a3354f3790383836c52370b56c
parente7ec4d2fc8337d31ed67429170de1c7cc678d7ed
devargs: simplify parameters of removal function

The function rte_devargs_remove(), which is intended to be internal,
can take a devargs structure as argument.
The matching is still using string comparison of bus name and
device name.
It is simpler and may allow a different devargs matching in future.

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>
doc/guides/rel_notes/release_18_11.rst
drivers/bus/ifpga/ifpga_bus.c
drivers/bus/vdev/vdev.c
lib/librte_eal/common/eal_common_dev.c
lib/librte_eal/common/eal_common_devargs.c
lib/librte_eal/common/include/rte_devargs.h