drivers/net: enable device detach on secondary process
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 16 Oct 2018 00:16:31 +0000 (08:16 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Oct 2018 08:16:18 +0000 (10:16 +0200)
commit8f62ec38616b16491f8601fc54ad5d643ef0e339
treead7518b8c27e4d72604856dfeb244bd8a24f322a
parent4852aa8f6e2125664698afc43b820bd787b02756
drivers/net: enable device detach on secondary process

With the enabling for hotplug on multi-process,
rte_eth_dev_pci_generic_remove can be used to detach the device from
a secondary process also. But we need to take care of the uninit callback
parameter to make sure it handles the secondary case correctly.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/ena/ena_ethdev.c
drivers/net/liquidio/lio_ethdev.c
drivers/net/virtio/virtio_ethdev.c