diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2018-10-22 12:37:21 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-07 17:28:42 +0100 |
| commit | 6bd4a6d4b867fab1f94f9fe3d1b19d02ac3d684b (patch) | |
| tree | e393625078c7e5be8fe90ea9836b7959533ce5a4 /tests/libqos/virtio-net.h | |
| parent | 6ae333f91b99cc4448e6c0af45f38d87bc952c82 (diff) | |
| download | focaccia-qemu-6bd4a6d4b867fab1f94f9fe3d1b19d02ac3d684b.tar.gz focaccia-qemu-6bd4a6d4b867fab1f94f9fe3d1b19d02ac3d684b.zip | |
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 <pbonzini@redhat.com>
Diffstat (limited to 'tests/libqos/virtio-net.h')
| -rw-r--r-- | tests/libqos/virtio-net.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |