net/szedata2: remove resources when port is closed
authorRastislav Cernay <cernay@netcope.com>
Tue, 27 Aug 2019 21:04:19 +0000 (23:04 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 28 Aug 2019 13:09:28 +0000 (15:09 +0200)
commit3890413fc50abe0bafb0c0a1dccfa569e92dbcb3
treed355adb18b6cf21e1652ee16038bf9b29e2b696e
parentf1d59d3fc8adc8338c010f0ab742a8abb761c4c8
net/szedata2: 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>
Acked-by: Jan Remes <remes@netcope.com>
drivers/net/szedata2/rte_eth_szedata2.c