aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/vhost_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/devices/virtio/vhost_user.c')
-rw-r--r--src/vnet/devices/virtio/vhost_user.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vnet/devices/virtio/vhost_user.c b/src/vnet/devices/virtio/vhost_user.c
index 9c585722b48..b6e0806db90 100644
--- a/src/vnet/devices/virtio/vhost_user.c
+++ b/src/vnet/devices/virtio/vhost_user.c
@@ -1414,10 +1414,8 @@ vhost_user_term_if (vhost_user_intf_t * vui)
vhost_user_update_gso_interface_count (vui, 0 /* delete */ );
vhost_user_update_iface_state (vui);
- FOR_ALL_VHOST_RX_TXQ (q, vui)
- {
+ for (q = 0; q < vec_len (vui->vrings); q++)
clib_spinlock_free (&vui->vrings[q].vring_lock);
- }
if (vui->unix_server_index != ~0)
{