devargs: fix freeing during device removal
authorThomas Monjalon <thomas@monjalon.net>
Wed, 17 Oct 2018 23:42:52 +0000 (01:42 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 19 Oct 2018 20:37:10 +0000 (22:37 +0200)
commit739e13bcc98f562d3301f808ec76507ebae82e63
treed79033142fcc85eb2ff77a9f62b2d1a07e9169ef
parentb5b38ed87893810de02dc63a6c722ef6aa3ff340
devargs: fix freeing during device removal

After calling unplug function of a bus, the device is expected
to be freed. It is too late for getting devargs to remove.
Anyway, the buses which implement unplug are already freeing
the devargs, except the PCI bus.
So the call to rte_devargs_remove() is removed from EAL and
added in PCI.

Fixes: 2effa126fbd8 ("devargs: simplify parameters of removal function")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
drivers/bus/pci/pci_common.c
lib/librte_eal/common/eal_common_dev.c