mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 14:23:53 -06: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:
parent
2b8985f1b8
commit
375eae1c71
2 changed files with 2 additions and 1 deletions
|
@ -53,6 +53,7 @@ static void virtio_net_setup(QVirtioNet *interface)
|
|||
} else {
|
||||
interface->n_queues = 2;
|
||||
}
|
||||
interface->n_queues++; /* Account for the ctrl queue */
|
||||
|
||||
interface->queues = g_new(QVirtQueue *, interface->n_queues);
|
||||
for (i = 0; i < interface->n_queues; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue