virtio-net: Fix hash reporting when the queue changes
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Fri, 22 Nov 2024 05:03:10 +0000 (14:03 +0900)
committerJason Wang <jasowang@redhat.com>
Mon, 25 Nov 2024 06:00:04 +0000 (14:00 +0800)
commit1981fa9d7da7a763b38ca2f583b9ec3a335cf661
treeb7d4d9bad2b8aed09322e14852b414466afcd6ea
parent162bdb8113d32e2efb3c6967e3828d4f0c4e14e0
virtio-net: Fix hash reporting when the queue changes

virtio_net_process_rss() fills the values used for hash reporting, but
the values used to be thrown away with a recursive function call if
the queue changes after RSS. Avoid the function call to keep the values.

Fixes: a4c960eedcd2 ("virtio-net: Do not write hashes to peer buffer")
Buglink: https://issues.redhat.com/browse/RHEL-59572
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c