When a user attempts to set autoneg advertised link speed to 10000baseCR/Full via ethtool, the request is silently ignored because 10000baseCR_Full is not in ice_adv_lnk_speed_10000[]. Add the missing bit so that the mode is recognised and the driver correctly programs the PHY. Fixes: 982b0192db45 ("ice: Refactor finding advertised link speed") Cc: stable@vger.kernel.org Signed-off-by: Voon Weifeng Signed-off-by: Aleksandr Loktionov --- drivers/net/ethernet/intel/ice/ice_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index 301947d..49b9376 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -367,6 +367,7 @@ static const u32 ice_adv_lnk_speed_5000[] __initconst = { static const u32 ice_adv_lnk_speed_10000[] __initconst = { ETHTOOL_LINK_MODE_10000baseT_Full_BIT, ETHTOOL_LINK_MODE_10000baseKR_Full_BIT, + ETHTOOL_LINK_MODE_10000baseCR_Full_BIT, ETHTOOL_LINK_MODE_10000baseSR_Full_BIT, ETHTOOL_LINK_MODE_10000baseLR_Full_BIT, }; -- 2.52.0