net/cxgbe: release port resources during port close
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Tue, 1 Sep 2020 17:16:26 +0000 (22:46 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:12 +0000 (18:55 +0200)
commit11df4a688de1949ce480822665ad84685b9945a3
tree403632edf8343c4942ce4d5fa2ed6944d98adf94
parent6b78a629954c3857d4bc651a673fe102958a12db
net/cxgbe: release port resources during port close

Enable RTE_ETH_DEV_CLOSE_REMOVE during PCI probe for all ports
enumerated under the PF. Free up the underlying port Virtual
Identifier (VI) and associated resources during port close.
Once all the ports under the PF are closed, free up the PF-wide
shared resources. Invoke port close function of all ports under
the PF, in PCI remove too.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_ethdev.c
drivers/net/cxgbe/cxgbe_main.c
drivers/net/cxgbe/cxgbevf_ethdev.c
drivers/net/cxgbe/cxgbevf_main.c