[PATCH] net/mlx5: fix MTU initialization in device spawn
Raslan Darawsheh
rasland at nvidia.com
Mon Sep 22 11:24:13 CEST 2025
On 18/09/2025 8:43 AM, Shani Peretz wrote:
> Currently with mlx5 PMD, rte_eth_dev_get_mtu() doesn't return
> the MTU the device was set with, but the default one.
> It happens because mlx5_dev_spawn() is not setting the eth_dev->data->mtu
> field after getting the actual MTU from the driver,
> so the default value is kept.
> This patch fixes the issue by retrieving setting the value of priv->mtu
> to eth_dev->data->mtu.
>
> Bugzilla ID: 1768
> Fixes: 2eb4d0107acc ("net/mlx5: refactor PCI probing on Linux")
> Cc: stable at dpdk.org
>
> Signed-off-by: Shani Peretz <shperetz at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> ---
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
More information about the dev
mailing list