[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2e3a11be-ad6a-4d4d-92b5-eca30166e7af@nvidia.com>
Date: Tue, 4 Nov 2025 11:10:53 -0600
From: Dan Jurgens <danielj@...dia.com>
To: Jason Wang <jasowang@...hat.com>
Cc: netdev@...r.kernel.org, mst@...hat.com, alex.williamson@...hat.com,
pabeni@...hat.com, virtualization@...ts.linux.dev, parav@...dia.com,
shshitrit@...dia.com, yohadt@...dia.com, xuanzhuo@...ux.alibaba.com,
eperezma@...hat.com, shameerali.kolothum.thodi@...wei.com, jgg@...pe.ca,
kevin.tian@...el.com, kuba@...nel.org, andrew+netdev@...n.ch,
edumazet@...gle.com
Subject: Re: [PATCH net-next v7 05/12] virtio_net: Query and set flow filter
caps
On 11/3/25 10:33 PM, Jason Wang wrote:
> On Tue, Nov 4, 2025 at 6:56 AM Daniel Jurgens <danielj@...dia.com> wrote:
>>
>> When probing a virtnet device, attempt to read the flow filter
>> capabilities. In order to use the feature the caps must also
>> be set. For now setting what was read is sufficient.
>>
>> Signed-off-by: Daniel Jurgens <danielj@...dia.com>
>> Reviewed-by: Parav Pandit <parav@...dia.com>
>> Reviewed-by: Shahar Shitrit <shshitrit@...dia.com>
>>
>> ---
>> v4:
>> - Validate the length in the selector caps
>> - Removed __free usage.
>> - Removed for(int.
>> v5:
>> - Remove unneed () after MAX_SEL_LEN macro (test bot)
>> v6:
>> - Fix sparse warning "array of flexible structures" Jakub K/Simon H
>> - Use new variable and validate ff_mask_size before set_cap. MST
>> v7:
>> - Set ff->ff_{caps, mask, actions} NULL in error path. Paolo Abeni
>> - Return errors from virtnet_ff_init, -ENOTSUPP is not fatal. Xuan
>> ---
>> + err = virtio_admin_cap_set(vdev,
>> + VIRTIO_NET_FF_SELECTOR_CAP,
>> + ff->ff_mask,
>> + ff_mask_size);
>
> Should this be real_ff_mask_size?
It can be. If the controller is sane they should be the same anyway.
>
> Thanks
>
Powered by blists - more mailing lists