[PATCH] net/mlx5: fix min and max MTU reporting
Raslan Darawsheh
rasland at nvidia.com
Mon Aug 18 08:27:57 CEST 2025
Hi,
On 16/07/2025 1:25 PM, Dariusz Sosnowski wrote:
> mlx5 PMD used hardcoded and incorrect values when reporting
> maximum MTU and maximum Rx packet length through rte_eth_dev_info_get().
>
> This patch adds support for querying OS for minimum and maximum
> allowed MTU values. Maximum Rx packet length is then calculated
> based on these values.
>
> On Linux, these values are queried through netlink,
> using IFLA_MIN_MTU and IFLA_MAX_MTU attributes added in Linux 4.18.
>
> Windows API unfortunately does not expose minimum and maximum
> allowed MTU values. In this case, fallback hardcoded values
> (working on currently supported HW) will be used.
>
> Bugzilla ID: 1719
> Fixes: e60fbd5b24fc ("mlx5: add device configure/start/stop")
> Cc: stable at dpdk.org
>
> Signed-off-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
More information about the dev
mailing list