]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: ethtool, Fix restriction of autoneg with 56G
authorAya Levin <ayal@nvidia.com>
Sun, 27 Dec 2020 14:33:19 +0000 (16:33 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 7 Jan 2021 20:22:50 +0000 (12:22 -0800)
commit7766d216091bdd0e75e4882363bc74d7b43f19cf
treeb4a45020f1d5d9d17dc01a65920f0b3015c426d9
parent3014c4188bdf8b99da8d8e0b0f522e19706d7531
net/mlx5e: ethtool, Fix restriction of autoneg with 56G

Prior to this patch, configuring speed to 50G with autoneg off over
devices supporting 50G per lane failed.
Support for 50G per lane introduced a new set of link-modes, on which
driver always performed a speed validation as if only legacy link-modes
were configured. Fix driver speed validation to force setting autoneg
over 56G only if in legacy link-mode.

Fixes: beed27c11aa0 ("net/mlx5e: ethtool, Fix analysis of speed setting")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Eran Ben Elisha <eranbe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c