ethdev: reset device and interrupt pointers on release
authorThomas Monjalon <thomas@monjalon.net>
Mon, 28 Sep 2020 23:14:09 +0000 (01:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:13 +0000 (19:19 +0200)
commit2c65898b4813baba7aadce57b68212d5af82a2fd
treef4126eab86b75c86748ed475104b2e34cb8c69fb
parent700ded7aa15f5ecc5b68d12fcb6fd3bfe06e599d
ethdev: reset device and interrupt pointers on release

The pointers .device and .intr_handle were already reset by the helper
rte_eth_dev_pci_generic_remove().
It is now made part of rte_eth_dev_release_port().

It makes rte_eth_dev_pci_release() meaningless,
so it is replaced with a call to rte_eth_dev_release_port().

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/ark/ark_ethdev.c
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/szedata2/rte_eth_szedata2.c
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev_pci.h