aboutsummaryrefslogtreecommitdiff
path: root/tests/libqos/virtio-net.h
diff options
context:
space:
mode:
authorOleinik, Alexander <alxndr@bu.edu>2019-08-05 03:24:15 +0000
committerThomas Huth <thuth@redhat.com>2019-08-15 19:23:59 +0200
commit375eae1c716bd55936d65ad545ae2ea0c9909b91 (patch)
tree808b926ff23c62272bd8e0fccebc43727c9215ac /tests/libqos/virtio-net.h
parent2b8985f1b82ea994dbe37986536c5c623c38ea86 (diff)
downloadqemu-375eae1c716bd55936d65ad545ae2ea0c9909b91.zip
qemu-375eae1c716bd55936d65ad545ae2ea0c9909b91.tar.gz
qemu-375eae1c716bd55936d65ad545ae2ea0c9909b91.tar.bz2
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.h')
-rw-r--r--tests/libqos/virtio-net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libqos/virtio-net.h b/tests/libqos/virtio-net.h
index a5697d7..855c67d 100644
--- a/tests/libqos/virtio-net.h
+++ b/tests/libqos/virtio-net.h
@@ -29,7 +29,7 @@ typedef struct QVirtioNetDevice QVirtioNetDevice;
struct QVirtioNet {
QVirtioDevice *vdev;
- int n_queues;
+ int n_queues; /* total number of virtqueues (rx, tx, ctrl) */
QVirtQueue **queues;
};