From 375eae1c716bd55936d65ad545ae2ea0c9909b91 Mon Sep 17 00:00:00 2001 From: "Oleinik, Alexander" Date: Mon, 5 Aug 2019 03:24:15 +0000 Subject: libqos: Account for the ctrl queue in virtio-net The number of queues is 2n+1, where n == 1 when multiqueue is disabled Signed-off-by: Alexander Oleinik Message-Id: <20190805032400.8054-1-alxndr@bu.edu> [thuth: fixed "intefaces" typo] Signed-off-by: Thomas Huth --- tests/libqos/virtio-net.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/libqos/virtio-net.c') diff --git a/tests/libqos/virtio-net.c b/tests/libqos/virtio-net.c index 66405b6..6567beb 100644 --- a/tests/libqos/virtio-net.c +++ b/tests/libqos/virtio-net.c @@ -53,6 +53,7 @@ static void virtio_net_setup(QVirtioNet *interface) } else { interface->n_queues = 2; } + interface->n_queues++; /* Account for the ctrl queue */ interface->queues = g_new(QVirtQueue *, interface->n_queues); for (i = 0; i < interface->n_queues; i++) { -- cgit v1.1