> -----Original Message----- > From: qemu-devel-bounces+chen.zhang=intel....@nongnu.org <qemu- > devel-bounces+chen.zhang=intel....@nongnu.org> On Behalf Of Akihiko > Odaki > Sent: Monday, October 30, 2023 1:13 PM > Cc: qemu-devel@nongnu.org; Yuri Benditovich > <yuri.benditov...@daynix.com>; Andrew Melnychenko > <and...@daynix.com>; Michael S . Tsirkin <m...@redhat.com>; Jason Wang > <jasow...@redhat.com>; Akihiko Odaki <akihiko.od...@daynix.com> > Subject: [PATCH v6 13/21] virtio-net: Always set populate_hash > > The member is not cleared during reset so may have a stale value. > /docs/devel/ebpf_rss.rst: populate_hash - for now, not used. eBPF RSS doesn't support hash reporting. We need update docs? And why not clear it in virtio_net_reset function? Thanks Chen > Signed-off-by: Akihiko Odaki <akihiko.od...@daynix.com> > --- > hw/net/virtio-net.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index > 1fa020d905..0fe75b3c08 100644 > --- a/hw/net/virtio-net.c > +++ b/hw/net/virtio-net.c > @@ -650,6 +650,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++) { > -- > 2.42.0 >
- [PATCH v6 05/21] tap: Remove tap_receive() Akihiko Odaki
- RE: [PATCH v6 05/21] tap: Remove tap_receive() Zhang, Chen
- [PATCH v6 16/21] ebpf: Fix RSS error handling Akihiko Odaki
- [PATCH v6 02/21] tap: Remove qemu_using_vnet_hdr() Akihiko Odaki
- [PATCH v6 12/21] virtio-net: Enable software RSS Akihiko Odaki
- Re: [PATCH v6 12/21] virtio-net: Enable software RSS Yuri Benditovich
- [PATCH v6 20/21] ebpf: Refactor tun_rss_steering_prog() Akihiko Odaki
- [PATCH v6 01/21] tap: Remove tap_probe_vnet_hdr_len() Akihiko Odaki
- [PATCH v6 07/21] tap: Shrink zeroed virtio-net header Akihiko Odaki
- [PATCH v6 13/21] virtio-net: Always set populate_hash Akihiko Odaki
- RE: [PATCH v6 13/21] virtio-net: Always set populate... Zhang, Chen
- Re: [PATCH v6 13/21] virtio-net: Always set popu... Akihiko Odaki
- [PATCH v6 18/21] ebpf: Simplify error handling Akihiko Odaki
- [PATCH v6 17/21] ebpf: Use standard section name Akihiko Odaki
- [PATCH v6 03/21] net: Move virtio-net header length asser... Akihiko Odaki
- [PATCH v6 09/21] virtio-net: Disable RSS on reset Akihiko Odaki
- [PATCH v6 19/21] ebpf: Return 0 when configuration fails Akihiko Odaki
- [PATCH v6 04/21] net: Remove receive_raw() Akihiko Odaki
- [PATCH v6 08/21] virtio-net: Copy header only when necess... Akihiko Odaki
- [PATCH v6 10/21] virtio-net: Unify the logic to update NI... Akihiko Odaki
- [PATCH v6 14/21] virtio-net: Do not write hashes to peer ... Akihiko Odaki