Skip to content

Commit 2a6d8f2

Browse files
pgreenwakuba-moo
authored andcommitted
ice: fix 200G PHY types to link speed mapping
Commit 24407a0 ("ice: Add 200G speed/phy type use") added support for 200G PHY speeds, but did not include the mapping of 200G PHY types to link speed. As a result the driver is returning UNKNOWN link speed when setting 200G ethtool advertised link modes. To fix this add 200G PHY types to link speed mapping to ice_get_link_speed_based_on_phy_type(). Fixes: 24407a0 ("ice: Add 200G speed/phy type use") Reviewed-by: Michal Swiatkowski <[email protected]> Signed-off-by: Paul Greenwalt <[email protected]> Tested-by: Pucha Himasekhar Reddy <[email protected]> Signed-off-by: Jacob Keller <[email protected]> Link: https://lore.kernel.org/r/20240528-net-2024-05-28-intel-net-fixes-v1-5-dc8593d2bbc6@intel.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c80b653 commit 2a6d8f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/net/ethernet/intel/ice/ice_common.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3148,6 +3148,16 @@ ice_get_link_speed_based_on_phy_type(u64 phy_type_low, u64 phy_type_high)
31483148
case ICE_PHY_TYPE_HIGH_100G_AUI2:
31493149
speed_phy_type_high = ICE_AQ_LINK_SPEED_100GB;
31503150
break;
3151+
case ICE_PHY_TYPE_HIGH_200G_CR4_PAM4:
3152+
case ICE_PHY_TYPE_HIGH_200G_SR4:
3153+
case ICE_PHY_TYPE_HIGH_200G_FR4:
3154+
case ICE_PHY_TYPE_HIGH_200G_LR4:
3155+
case ICE_PHY_TYPE_HIGH_200G_DR4:
3156+
case ICE_PHY_TYPE_HIGH_200G_KR4_PAM4:
3157+
case ICE_PHY_TYPE_HIGH_200G_AUI4_AOC_ACC:
3158+
case ICE_PHY_TYPE_HIGH_200G_AUI4:
3159+
speed_phy_type_high = ICE_AQ_LINK_SPEED_200GB;
3160+
break;
31513161
default:
31523162
speed_phy_type_high = ICE_AQ_LINK_SPEED_UNKNOWN;
31533163
break;

0 commit comments

Comments
 (0)