ethdev: avoid error on PCI unplug of closed port
authorAndrew Rybchenko <arybchenko@solarflare.com>
Fri, 21 Jun 2019 09:40:39 +0000 (10:40 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Jul 2019 23:52:01 +0000 (01:52 +0200)
commitca5ba1b6972f381d410f9e53b650ba179e776225
tree35cb702880f52b4377188649320904897970a709
parent87c95f044568a439175a3fa0becf83b52eed8820
ethdev: avoid error on PCI unplug of closed port

If PCI Ethernet device driver removes it on close
(RTE_ETH_DEV_CLOSE_REMOVE) and later PCI device itself is unplugged,
it should not fail because of Ethernet device is already removed.

Fixes: 23ea57a2a0ce ("ethdev: complete closing of port")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reported-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_ethdev/rte_ethdev_pci.h