]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-net: avoid call tap_enable when there's only one queue
authorJason Wang <jasowang@redhat.com>
Wed, 29 Mar 2017 02:41:23 +0000 (10:41 +0800)
committerJason Wang <jasowang@redhat.com>
Fri, 31 Mar 2017 00:48:13 +0000 (08:48 +0800)
commit1074b879d1c84232177f9b4e044636639ac4c6a5
treecd01be700d5b463e5472f97070b391a213ca7a6e
parentddc2c3a57e0752c0650fdb735a8b8322542d4248
virtio-net: avoid call tap_enable when there's only one queue

We call tap_enable() even if for multiqueue is not enabled. This is
wrong since it should be used for multiqueue codes to enable a
disabled queue. Fixing this by only calling this when multiqueue is
used.

Fixes: 16dbaf905b72 ("tap: support enabling or disabling a queue")
Reported-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Tested-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c