]> 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>
Tue, 9 Apr 2024 17:09:20 +0000 (20:09 +0300)
commit493b1cc785a13a4e3f7ed7911a07eb4d496c1a09
tree9b7ea250a5582f4e9429d6dd6fb4243576ccaec4
parent70b0e142e6dc717f512a107e5d052acd50d2c2e1
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