net/avp: remove resources when port is closed
authorAllain Legacy <allain.legacy@windriver.com>
Tue, 18 Jun 2019 19:18:59 +0000 (14:18 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:49 +0000 (20:31 +0200)
commit15fb42d511ff56bdaedaa6d87dcf5240b404e6b5
tree6ecc4d1a269818e8a253c75633c3db9cf973c6dd
parente876497c4f6baef09fbee14b702025b67f4fed1c
net/avp: 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.

Second level memory allocated to each individual rx/tx queue is now
freed as part of the close() operation therefore making it safe for the
rte_eth_dev_close() function to free the device private data without
orphaning the rx/tx queue pointers.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Acked-by: Matt Peters <matt.peters@windriver.com>
drivers/net/avp/avp_ethdev.c