On Sun, 10 Aug 2025 16:22:59 +0300 Gregory Etelson <getel...@nvidia.com> wrote:
> The patch fixes `ifname` parameter as a character buffer. > > Fixes: 1256805dd54d ("net/mlx5: move Linux-specific functions") > > Signed-off-by: Gregory Etelson <getel...@nvidia.com> > Acked-by: Dariusz Sosnowski <dsosnow...@nvidia.com> > --- This looks better but did you know that the ifname can never be as big as MLX5_NAMESIZE. Kernel limits to IFNAMSIZ (ie 16). The largest allowable interface name in Linux is 15 characters. Looks like: MLX5_NAMESIZE := MXL5_FS_NAME_MAX := IBV_SYSFS_NAME_MAX + 1 = 64 + 1 = 65 Because Linux interface name length is fixed by BSD legacy ABI's it will never be longer.