mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
virtio-net: Always set populate_hash
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>
This commit is contained in:
parent
0e07198ea3
commit
13d40aa88b
1 changed files with 1 additions and 0 deletions
|
@ -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 ?
|
n->guest_hdr_len = n->mergeable_rx_bufs ?
|
||||||
sizeof(struct virtio_net_hdr_mrg_rxbuf) :
|
sizeof(struct virtio_net_hdr_mrg_rxbuf) :
|
||||||
sizeof(struct virtio_net_hdr);
|
sizeof(struct virtio_net_hdr);
|
||||||
|
n->rss_data.populate_hash = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < n->max_queue_pairs; i++) {
|
for (i = 0; i < n->max_queue_pairs; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue