From 6bd4a6d4b867fab1f94f9fe3d1b19d02ac3d684b Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Mon, 22 Oct 2018 12:37:21 +0200 Subject: tests/libqos: support multiqueue for virtio-net Initialize the additional virtqueues if they are supported. This is needed to switch vhost-user-test's multiqueue test to the virtio-net qgraph. Signed-off-by: Paolo Bonzini --- tests/libqos/virtio-net.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/libqos/virtio-net.h') diff --git a/tests/libqos/virtio-net.h b/tests/libqos/virtio-net.h index e6905cd82e..28238a1b20 100644 --- a/tests/libqos/virtio-net.h +++ b/tests/libqos/virtio-net.h @@ -26,8 +26,8 @@ typedef struct QVirtioNetDevice QVirtioNetDevice; struct QVirtioNet { QVirtioDevice *vdev; - QVirtQueue *rx; - QVirtQueue *tx; + int n_queues; + QVirtQueue **queues; }; struct QVirtioNetPCI { -- cgit 1.4.1