mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
6ae333f91b
commit
6bd4a6d4b8
3 changed files with 22 additions and 9 deletions
|
@ -26,8 +26,8 @@ typedef struct QVirtioNetDevice QVirtioNetDevice;
|
|||
|
||||
struct QVirtioNet {
|
||||
QVirtioDevice *vdev;
|
||||
QVirtQueue *rx;
|
||||
QVirtQueue *tx;
|
||||
int n_queues;
|
||||
QVirtQueue **queues;
|
||||
};
|
||||
|
||||
struct QVirtioNetPCI {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue