net/tap: release port upon close
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 28 Sep 2020 23:14:28 +0000 (01:14 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:14 +0000 (19:19 +0200)
commit23d8e85e44a5c30b7705c7ab90a4bff7d28015e5
tree341e267607e9dac75f01edf365aa24ba3d4b9e7e
parent1d6766580775ee02bb2efcc9f5f49d1194c37811
net/tap: release port upon close

The flag RTE_ETH_DEV_CLOSE_REMOVE is set so all port resources
can be freed by rte_eth_dev_close().

Freeing of private port resources is moved
from the ".remove(device)" to the ".dev_close(port)" operation.

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/tap/rte_eth_tap.c