pci: propagate PMD removal error value for unplug
authorGaetan Rivet <gaetan.rivet@6wind.com>
Tue, 24 Oct 2017 10:35:39 +0000 (12:35 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commit51093e679be90a9f7431f3e0d0fe4226c10eda3d
treeafa1d817f91e3ffc8012786cb5f4f6e88c5a5b17
parent00a3d8104ac5ed9b627426d81a47a692a6ee7f90
pci: propagate PMD removal error value for unplug

If a PCI device detach removal fails, returns the actual removal
operator error value.

Use this value within pci->unplug, as it may help applications solve an
issue with the feature or more accurately warn their users.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_eal/common/eal_common_pci.c