[PATCH] net/mlx5: avoid setting kernel MTU if not needed
David Marchand
david.marchand at redhat.com
Wed Jun 4 11:52:44 CEST 2025
On Tue, Jun 3, 2025 at 7:54 PM Dariusz Sosnowski <dsosnowski at nvidia.com> wrote:
> > Atm, I don't see the need for keeping such a cached mtu value in priv.
> > There is only one user of the value, and it is for configuration
> > operation that can do a query to the kernel.
>
> I agree. It's not really needed, especially since the same value is also
> stored in dev->data->mtu, so the kernel query can easily be replaced
> with reading dev->data->mtu.
Good point, which makes this priv->mtu even less useful.
Thanks Dariusz.
--
David Marchand
More information about the dev
mailing list