]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio-net: correctly enable multiqueue
authorJason Wang <jasowang@redhat.com>
Tue, 13 Dec 2016 06:23:05 +0000 (14:23 +0800)
committerSi-Wei Liu <si-wei.liu@oracle.com>
Fri, 15 Sep 2017 18:24:21 +0000 (14:24 -0400)
commit5b455cf142ecae8abd9eda0338a815cdb7494f1a
treeec6b05c7ab9998a8d7b0ea43fa89c9da2cd67165
parent73c00ed8e66878302f6a47d4a116f27f68cf9660
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>
(cherry picked from commit a220871be66f99d8957c693cf22ec67ecbd9c23a)

Orabug: 26584452

Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
drivers/net/virtio_net.c