Skip to content

Commit 6d485e5

Browse files
ayalevin123Saeed Mahameed
authored andcommitted
net/mlx5e: Fix translation of link mode into speed
Add a missing value in translation of PTYS ext_eth_proto_oper to its corresponding speed. When ext_eth_proto_oper bit 10 is set, ethtool shows unknown speed. With this fix, ethtool shows speed is 100G as expected. Fixes: a08b4ed ("net/mlx5: Add support to ext_* fields introduced in Port Type and Speed register") Signed-off-by: Aya Levin <[email protected]> Reviewed-by: Eran Ben Elisha <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent eb252c3 commit 6d485e5

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/port.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ static const u32 mlx5e_ext_link_speed[MLX5E_EXT_LINK_MODES_NUMBER] = {
7373
[MLX5E_50GAUI_2_LAUI_2_50GBASE_CR2_KR2] = 50000,
7474
[MLX5E_50GAUI_1_LAUI_1_50GBASE_CR_KR] = 50000,
7575
[MLX5E_CAUI_4_100GBASE_CR4_KR4] = 100000,
76+
[MLX5E_100GAUI_2_100GBASE_CR2_KR2] = 100000,
7677
[MLX5E_200GAUI_4_200GBASE_CR4_KR4] = 200000,
7778
[MLX5E_400GAUI_8] = 400000,
7879
};

0 commit comments

Comments
 (0)