diff options
author | Oleinik, Alexander | 2019-08-05 05:24:15 +0200 |
---|---|---|
committer | Thomas Huth | 2019-08-15 19:23:59 +0200 |
commit | 375eae1c716bd55936d65ad545ae2ea0c9909b91 (patch) | |
tree | 808b926ff23c62272bd8e0fccebc43727c9215ac /tests/libqos/virtio-net.c | |
parent | qtest: Rename qtest.c:qtest_init() (diff) | |
download | qemu-375eae1c716bd55936d65ad545ae2ea0c9909b91.tar.gz qemu-375eae1c716bd55936d65ad545ae2ea0c9909b91.tar.xz qemu-375eae1c716bd55936d65ad545ae2ea0c9909b91.zip |
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 <alxndr@bu.edu>
Message-Id: <20190805032400.8054-1-alxndr@bu.edu>
[thuth: fixed "intefaces" typo]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/libqos/virtio-net.c')
-rw-r--r-- | tests/libqos/virtio-net.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libqos/virtio-net.c b/tests/libqos/virtio-net.c index 66405b646e..6567beb553 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++) { |