net/vhost: release port upon close
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 5 Jun 2019 09:42:32 +0000 (17:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:29 +0000 (23:54 +0900)
commitfa2407ac3033fbdbf817fca66f8ac3554e5115ae
treec5f8dae5de87eba1331ddbba8c79bad372799af7
parent1f4d55be438b428bed74f2e3dc49cfd6efc3e6fd
net/vhost: release port upon close

Set RTE_ETH_DEV_CLOSE_REMOVE upon probe so all the private
resources for the port can be freed by rte_eth_dev_close().

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/vhost/rte_eth_vhost.c