net/virtio: release port upon close
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 5 Jun 2019 09:43:41 +0000 (17:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit7f468b2ebfad1f9c32432a59c084dd460f177d9f
treeab82761ce26c96b90408f3aa383de7e9f905e196
parent3484c8d859b48f41c8958614736cc64f0e203f4c
net/virtio: 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/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_user/virtio_user_dev.h
drivers/net/virtio/virtio_user_ethdev.c