net/bnx2x: release port upon close
authorRasesh Mody <rmody@marvell.com>
Mon, 28 Sep 2020 23:14:14 +0000 (01:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:14 +0000 (19:19 +0200)
commit8f3aee84f3c29ecad85d6f9e9f141b1bfa1d98fe
tree8996b0b978f806e9235539ed73491c863f48cff5
parent479e6a425c29a90c861457f83824d9dddfc3cf6e
net/bnx2x: release port upon close

Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private resources
for the port can be freed by rte_eth_dev_close(). With this change the
private port resources are released in the .dev_close callback.

Signed-off-by: Rasesh Mody <rmody@marvell.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/bnx2x/bnx2x_ethdev.c