net/ena: remove resources when port is being closed
authorMichal Krawczyk <mk@semihalf.com>
Wed, 31 Oct 2018 14:53:16 +0000 (15:53 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commit4d7877fde2ef78639aa21273d585201884045abd
tree4e1b452b1505ce21663c7bf93048caa9ba13b2eb
parent66c4904f9298172e619d3c8f144f52c193914362
net/ena: remove resources when port is being closed

The new API introduced in 18.11 is suggesting, that the driver should
release all it's resources at the dev_close routine.

All resources previously released in uninit routine during PCI removal,
are now being released at the dev_close and the PMD is indicating that
it is supporting API changes by setting RTE_ETH_DEV_CLOSE_REMOVE flag.

As the device is not allocating MAC addresses dynamically, it is setting
mac_addrs field to NULL, so it wouldn't be released by the
rte_eth_dev_release_port().

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c