virtio-net: correctly enable multiqueue
authorJason Wang <jasowang@redhat.com>
Tue, 13 Dec 2016 06:23:05 +0000 (14:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Dec 2016 15:37:38 +0000 (10:37 -0500)
commita220871be66f99d8957c693cf22ec67ecbd9c23a
tree20216d50752722979a0ea04b838186a28c817d7c
parent8fa3b6f9392bf6d90cb7b908e07bd90166639f0a
virtio-net: correctly enable multiqueue

Commit 4490001029012539937ff02778fe6180613fa949 ("virtio-net: enable
multiqueue by default") blindly set the affinity instead of queues
during probe which can cause a mismatch of #queues between guest and
host. This patch fixes it by setting queues.

Reported-by: Theodore Ts'o <tytso@mit.edu>
Tested-by: Theodore Ts'o <tytso@mit.edu>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Fixes: 49000102901 ("virtio-net: enable multiqueue by default")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c