aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mlx5/mlx5_ib
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2022-02-21 08:25:29 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2022-02-21 08:35:19 +0000
commit91c8ffd7e60fa7f017731cd234c01b7cddc05272 (patch)
treea29d451590f0d5bc41e2bef768989d2fef7c4549 /sys/dev/mlx5/mlx5_ib
parentea8aacc523e8ac43e035097233774f30b1d33653 (diff)
Diffstat (limited to 'sys/dev/mlx5/mlx5_ib')
-rw-r--r--sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
index 65767483652f..acd74e3ec643 100644
--- a/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
+++ b/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
@@ -259,10 +259,22 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u8 *active_speed,
*active_width = IB_WIDTH_2X;
*active_speed = IB_SPEED_HDR;
break;
+ case MLX5E_PROT_MASK(MLX5E_100GAUI_1_100GBASE_CR_KR):
+ *active_width = IB_WIDTH_1X;
+ *active_speed = IB_SPEED_NDR;
+ break;
case MLX5E_PROT_MASK(MLX5E_200GAUI_4_200GBASE_CR4_KR4):
*active_width = IB_WIDTH_4X;
*active_speed = IB_SPEED_HDR;
break;
+ case MLX5E_PROT_MASK(MLX5E_200GAUI_2_200GBASE_CR2_KR2):
+ *active_width = IB_WIDTH_2X;
+ *active_speed = IB_SPEED_NDR;
+ break;
+ case MLX5E_PROT_MASK(MLX5E_400GAUI_4_400GBASE_CR4_KR4):
+ *active_width = IB_WIDTH_4X;
+ *active_speed = IB_SPEED_NDR;
+ break;
default:
*active_width = IB_WIDTH_4X;
*active_speed = IB_SPEED_QDR;