projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e07198
)
virtio-net: Always set populate_hash
author
Akihiko Odaki
<akihiko.odaki@daynix.com>
Sun, 28 Apr 2024 07:00:56 +0000
(16:00 +0900)
committer
Jason Wang
<jasowang@redhat.com>
Tue, 4 Jun 2024 07:14:26 +0000
(15:14 +0800)
The member is not cleared during reset so may have a stale value.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c
patch
|
blob
|
history
diff --git
a/hw/net/virtio-net.c
b/hw/net/virtio-net.c
index 8464eb40827bf6dda3f162774e0910db3672c6bf..b423169a48ac8f5e9c013306e9a2e353104031ef 100644
(file)
--- a/
hw/net/virtio-net.c
+++ b/
hw/net/virtio-net.c
@@
-651,6
+651,7
@@
static void virtio_net_set_mrg_rx_bufs(VirtIONet *n, int mergeable_rx_bufs,
n->guest_hdr_len = n->mergeable_rx_bufs ?
sizeof(struct virtio_net_hdr_mrg_rxbuf) :
sizeof(struct virtio_net_hdr);
+ n->rss_data.populate_hash = false;
}
for (i = 0; i < n->max_queue_pairs; i++) {