]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-net: Fix vhost virtqueue notifiers for RSS
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Wed, 27 Mar 2024 02:05:09 +0000 (11:05 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 31 Mar 2024 19:11:27 +0000 (22:11 +0300)
commit12e4886108358b36050acc243b17a0a5e07c184e
treeebb9d19d47e81359061fdc8700ce7ffd8b02b6ce
parent1e4ec0958ec734ed6a194475e699c917ba950cb2
virtio-net: Fix vhost virtqueue notifiers for RSS

virtio_net_guest_notifier_pending() and virtio_net_guest_notifier_mask()
checked VIRTIO_NET_F_MQ to know there are multiple queues, but
VIRTIO_NET_F_RSS also enables multiple queues. Refer to n->multiqueue,
which is set to true either of VIRTIO_NET_F_MQ or VIRTIO_NET_F_RSS is
enabled.

Fixes: 68b0a6395f36 ("virtio-net: align ctrl_vq index for non-mq guest for vhost_vdpa")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 1c188fc8cbffc5f05cc616cab4e1372fb6e6f11f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/net/virtio-net.c