mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 03:19:27 +00:00
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>
This commit is contained in:
committed by
Thomas Huth
parent
2b8985f1b8
commit
375eae1c71
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user