net/nfb: remove resources when port is closed
authorRastislav Cernay <cernay@netcope.com>
Tue, 27 Aug 2019 20:37:16 +0000 (22:37 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 28 Aug 2019 11:09:19 +0000 (13:09 +0200)
commitf1d59d3fc8adc8338c010f0ab742a8abb761c4c8
tree9eb6bd819922edda33cd29347b5f155de4cb5389
parente5db17a1e54e419419751f83bb804ef34eb15bff
net/nfb: remove resources when port is closed

The rte_eth_dev_close() function now handles freeing resources for
devices (e.g., mac_addrs).  To conform with the new close() behaviour we
are asserting the RTE_ETH_DEV_CLOSE_REMOVE flag so that
rte_eth_dev_close() releases all device level dynamic memory.

Signed-off-by: Rastislav Cernay <cernay@netcope.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Jan Remes <remes@netcope.com>
drivers/net/nfb/nfb_ethdev.c