Skip to content

Commit 88c9483

Browse files
msanallarleon
authored andcommitted
IB/mlx5: Add support for 400G_8X lane speed
Currently, when driver queries PTYS to report which link speed is being used on its RoCE ports, it does not check the case of having 400Gbps transmitted over 8 lanes. Thus it fails to report the said speed and instead it defaults to report 10G over 4 lanes. Add a check for the said speed when querying PTYS and report it back correctly when needed. Fixes: 08e8676 ("IB/mlx5: Add support for 50Gbps per lane link modes") Signed-off-by: Maher Sanalla <msanalla@nvidia.com> Reviewed-by: Aya Levin <ayal@nvidia.com> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Link: https://lore.kernel.org/r/ec9040548d119d22557d6a4b4070d6f421701fd4.1678973994.git.leon@kernel.org Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent e4522c0 commit 88c9483

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • drivers/infiniband/hw/mlx5

drivers/infiniband/hw/mlx5/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u16 *active_speed,
442442
*active_width = IB_WIDTH_2X;
443443
*active_speed = IB_SPEED_NDR;
444444
break;
445+
case MLX5E_PROT_MASK(MLX5E_400GAUI_8):
446+
*active_width = IB_WIDTH_8X;
447+
*active_speed = IB_SPEED_HDR;
448+
break;
445449
case MLX5E_PROT_MASK(MLX5E_400GAUI_4_400GBASE_CR4_KR4):
446450
*active_width = IB_WIDTH_4X;
447451
*active_speed = IB_SPEED_NDR;

0 commit comments

Comments
 (0)