[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer
|
From: |
Yuri Benditovich |
|
Subject: |
Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer |
|
Date: |
Mon, 8 Apr 2024 10:54:42 +0300 |
On Mon, Apr 8, 2024 at 10:42 AM Akihiko Odaki <akihiko.odaki@daynix.com> wrote:
>
> On 2024/04/08 16:40, Yuri Benditovich wrote:
> > On Mon, Apr 8, 2024 at 4:30 AM Akihiko Odaki <akihiko.odaki@daynix.com>
> > wrote:
> >>
> >> On 2024/04/08 7:09, Yuri Benditovich wrote:
> >>> On Wed, Apr 3, 2024 at 2:12 PM Akihiko Odaki <akihiko.odaki@daynix.com>
> >>> wrote:
> >>>>
> >>>> The peer buffer is qualified with const and not meant to be modified.
> >>>
> >>> IMHO, this buffer is not so 'const' (although the prototype states so),
> >>> it is allocated in net.c
> >>> btw, another procedure in this file also modifies the buffer
> >>> (work_around_broken_dhclient)
> >>
> >> Right but it has a FIXME comment.
> >>
> >>>
> >>>> It also prevents enabling VIRTIO_NET_F_HASH_REPORT for peers without
> >>>> virtio-net header support.
> >>>
> >>> Does it mean _this commit_ prevents enabling VIRTIO_NET_F_HASH_REPORT
> >>> for peers without
> >>> virtio-net header support? Where?
> >>
> >> No, but I meant that this patch fixes such a problem.
> >
> > No, it does not. Such a problem does not exist in the master, the
> > hash_report feature
> > is silently dropped in such case:
> > https://github.com/qemu/qemu/blob/master/hw/net/virtio-net.c#L816
>
> Well, silently dropping VIRTIO_NET_F_HASH_REPORT is not different from
> preventing enabling VIRTIO_NET_F_HASH_REPORT, is it?
>
But how is your patch involved in it? Should this line be removed from
the commit message?
> Regards,
> Akihiko Odaki
- Re: [PATCH v9 13/20] virtio-net: Return an error when vhost cannot enable RSS, (continued)
Re: [PATCH v9 13/20] virtio-net: Return an error when vhost cannot enable RSS, Yuri Benditovich, 2024/04/16
[PATCH v9 14/20] virtio-net: Report RSS warning at device realization, Akihiko Odaki, 2024/04/03
[PATCH v9 15/20] virtio-net: Always set populate_hash, Akihiko Odaki, 2024/04/03
[PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer, Akihiko Odaki, 2024/04/03
- Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer, Yuri Benditovich, 2024/04/07
- Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer, Akihiko Odaki, 2024/04/07
- Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer, Yuri Benditovich, 2024/04/08
- Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer, Akihiko Odaki, 2024/04/08
- Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer,
Yuri Benditovich <=
- Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer, Akihiko Odaki, 2024/04/08
- Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer, Yuri Benditovich, 2024/04/08
- Re: [PATCH v9 16/20] virtio-net: Do not write hashes to peer buffer, Akihiko Odaki, 2024/04/08
[PATCH v9 18/20] ebpf: Return 0 when configuration fails, Akihiko Odaki, 2024/04/03
[PATCH v9 19/20] ebpf: Refactor tun_rss_steering_prog(), Akihiko Odaki, 2024/04/03
[PATCH v9 20/20] ebpf: Add a separate target for skeleton, Akihiko Odaki, 2024/04/03
[PATCH v9 17/20] ebpf: Fix RSS error handling, Akihiko Odaki, 2024/04/03