vhost: Delete thread configuration when interface deleted
[vpp.git] / vnet / vnet / devices / virtio / vhost-user.c
index 6a7f7e6..decfebb 100644 (file)
@@ -2205,6 +2205,8 @@ vhost_user_delete_if (vnet_main_t * vnm, vlib_main_t * vm, u32 sw_if_index)
 
   // interface is inactive
   vui->active = 0;
+  // Delete configured thread pinning
+  vec_reset_length (vui->workers);
   // disconnect interface sockets
   vhost_user_if_disconnect (vui);
   vhost_user_update_iface_state (vui);