net/kni: remove resources when port is closed
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Jul 2019 16:33:04 +0000 (17:33 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:52 +0000 (15:00 +0200)
commit696fbc7bb4fc8ae7a45c147bac188edbf2057d1f
treefc8bb5702c9580b7f86b16604ea815caed5f5fe3
parent282b72cd725ac6f5a32558253ad80e905c3b4028
net/kni: remove resources when port is closed

Add .dev_close to clean resources on device close,
also set RTE_ETH_DEV_CLOSE_REMOVE device flag to cause all ethdev
resources removed on 'rte_eth_dev_close()' call.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/kni/rte_eth_kni.c