aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-11-16 02:43:29 +0000
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-16 13:30:57 +0000
commitfbb2ef64563ccab03978a22660ad4b22ca3eae4a (patch)
treeaa9a77e84c4b68e384a6bde74bc9ca3b056691c9 /vnet
parent740bcdbd2b13bef4f5c9b487ed0dcbbee6a760c9 (diff)
vhost: Fix bug during interface deletion
This small patch fixes a critical bug during interface deletion. While the interface was removed, thread placement was not corrected properly. This should help fixing VPP-528,VPP-531 as well as other FDS bug reports. Change-Id: I02f9d44c62b6ca4c0b6d73f476600b342846507f Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/devices/virtio/vhost-user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/devices/virtio/vhost-user.c b/vnet/vnet/devices/virtio/vhost-user.c
index b9e08a14..6a7f7e60 100644
--- a/vnet/vnet/devices/virtio/vhost-user.c
+++ b/vnet/vnet/devices/virtio/vhost-user.c
@@ -2207,6 +2207,7 @@ vhost_user_delete_if (vnet_main_t * vnm, vlib_main_t * vm, u32 sw_if_index)
vui->active = 0;
// disconnect interface sockets
vhost_user_if_disconnect (vui);
+ vhost_user_update_iface_state (vui);
// add to inactive interface list
vec_add1 (vum->vhost_user_inactive_interfaces_index, p[0]);