Skip to content

Commit cd27287

Browse files
ayalevin123jgunthorpe
authored andcommitted
IB/mlx5: Fix mapping of link-mode to IB width and speed
Add mapping of link mode: CAUI4 100Gbps CR4/KR4 with 4 lines and 25Gbps. Fix mapping of link mode: GAUI2 50Gbps CR2/KR2 to be 2 lines with 25Gbps. Fixes: 08e8676 ("IB/mlx5: Add support for 50Gbps per lane link modes") Signed-off-by: Aya Levin <ayal@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
1 parent c5ae195 commit cd27287

File tree

1 file changed

+7
-0
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+7
-0
lines changed

drivers/infiniband/hw/mlx5/main.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,17 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u8 *active_speed,
415415
*active_speed = IB_SPEED_EDR;
416416
break;
417417
case MLX5E_PROT_MASK(MLX5E_50GAUI_2_LAUI_2_50GBASE_CR2_KR2):
418+
*active_width = IB_WIDTH_2X;
419+
*active_speed = IB_SPEED_EDR;
420+
break;
418421
case MLX5E_PROT_MASK(MLX5E_50GAUI_1_LAUI_1_50GBASE_CR_KR):
419422
*active_width = IB_WIDTH_1X;
420423
*active_speed = IB_SPEED_HDR;
421424
break;
425+
case MLX5E_PROT_MASK(MLX5E_CAUI_4_100GBASE_CR4_KR4):
426+
*active_width = IB_WIDTH_4X;
427+
*active_speed = IB_SPEED_EDR;
428+
break;
422429
case MLX5E_PROT_MASK(MLX5E_100GAUI_2_100GBASE_CR2_KR2):
423430
*active_width = IB_WIDTH_2X;
424431
*active_speed = IB_SPEED_HDR;

0 commit comments

Comments
 (0)