[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v6 13/21] virtio-net: Always set populate_hash
|
From: |
Zhang, Chen |
|
Subject: |
RE: [PATCH v6 13/21] virtio-net: Always set populate_hash |
|
Date: |
Mon, 30 Oct 2023 19:02:07 +0000 |
> -----Original Message-----
> From: qemu-devel-bounces+chen.zhang=intel.com@nongnu.org <qemu-
> devel-bounces+chen.zhang=intel.com@nongnu.org> On Behalf Of Akihiko
> Odaki
> Sent: Monday, October 30, 2023 1:13 PM
> Cc: qemu-devel@nongnu.org; Yuri Benditovich
> <yuri.benditovich@daynix.com>; Andrew Melnychenko
> <andrew@daynix.com>; Michael S . Tsirkin <mst@redhat.com>; Jason Wang
> <jasowang@redhat.com>; Akihiko Odaki <akihiko.odaki@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.odaki@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 09/21] virtio-net: Disable RSS on reset, (continued)
[PATCH v6 12/21] virtio-net: Enable software RSS, Akihiko Odaki, 2023/10/30
[PATCH v6 13/21] virtio-net: Always set populate_hash, Akihiko Odaki, 2023/10/30
- RE: [PATCH v6 13/21] virtio-net: Always set populate_hash,
Zhang, Chen <=
[PATCH v6 14/21] virtio-net: Do not write hashes to peer buffer, Akihiko Odaki, 2023/10/30
[PATCH v6 15/21] virtio-net: Do not clear VIRTIO_NET_F_HASH_REPORT, Akihiko Odaki, 2023/10/30
[PATCH v6 16/21] ebpf: Fix RSS error handling, Akihiko Odaki, 2023/10/30
[PATCH v6 18/21] ebpf: Simplify error handling, Akihiko Odaki, 2023/10/30
[PATCH v6 17/21] ebpf: Use standard section name, Akihiko Odaki, 2023/10/30
[PATCH v6 20/21] ebpf: Refactor tun_rss_steering_prog(), Akihiko Odaki, 2023/10/30
[PATCH v6 19/21] ebpf: Return 0 when configuration fails, Akihiko Odaki, 2023/10/30
[PATCH v6 21/21] ebpf: Add a separate target for skeleton, Akihiko Odaki, 2023/10/30