mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
netdev-dpdk: Clean-up after vHost User port delete
Unregister and delete the socket associated with a vhost-user port when the port is deleted and/or the switch is brought down. Do not delete the socket if the vhost-user device is still attached to the guest. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
This commit is contained in:
committed by
Daniele Di Proietto
parent
3cdb27d314
commit
e04f7e4f2f
@@ -749,6 +749,10 @@ netdev_dpdk_vhost_destruct(struct netdev *netdev_)
|
||||
return;
|
||||
}
|
||||
|
||||
if (rte_vhost_driver_unregister(dev->vhost_id)) {
|
||||
VLOG_ERR("Unable to remove vhost-user socket %s", dev->vhost_id);
|
||||
}
|
||||
|
||||
ovs_mutex_lock(&dpdk_mutex);
|
||||
list_remove(&dev->list_node);
|
||||
dpdk_mp_put(dev->dpdk_mp);
|
||||
|
Reference in New Issue
Block a user