The ice_adv_lnk_speed_50000[] map is missing the single-lane 50G modes: 50000baseCR_Full, 50000baseKR_Full, 50000baseSR_Full, and 50000baseLR_ER_FR_Full. When a user tries to advertise one of these modes the driver prints "Nothing changed, exiting without setting anything." even on hardware that supports them. Add the missing entries to fix the mapping. Fixes: 982b0192db45 ("ice: Refactor finding advertised link speed") Cc: stable@vger.kernel.org Signed-off-by: Grzegorz Nitka Signed-off-by: Aleksandr Loktionov --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index 44483bc..0279cc5 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -389,6 +389,10 @@ static const u32 ice_adv_lnk_speed_50000[] __initconst = { ETHTOOL_LINK_MODE_50000baseCR2_Full_BIT, ETHTOOL_LINK_MODE_50000baseKR2_Full_BIT, ETHTOOL_LINK_MODE_50000baseSR2_Full_BIT, + ETHTOOL_LINK_MODE_50000baseCR_Full_BIT, + ETHTOOL_LINK_MODE_50000baseKR_Full_BIT, + ETHTOOL_LINK_MODE_50000baseSR_Full_BIT, + ETHTOOL_LINK_MODE_50000baseLR_ER_FR_Full_BIT, }; static const u32 ice_adv_lnk_speed_100000[] __initconst = { -- 2.52.0