svn commit: r358624 - in head/sys/dev/mlx5: . mlx5_en mlx5_ib
Konstantin Belousov
kib at FreeBSD.org
Wed Mar 4 17:13:37 UTC 2020
Author: kib
Date: Wed Mar 4 17:13:35 2020
New Revision: 358624
URL: https://svnweb.freebsd.org/changeset/base/358624
Log:
mlx5en: Support 50GBase-KR4 media type in mlx5en driver.
Submitted by: Adam Peace <adam.e.peace at gmail.com>
Reviewed by: hselasky
Sponsored by: Mellanox Technologies
MFC after: 1 week
Modified:
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
head/sys/dev/mlx5/port.h
Modified: head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Wed Mar 4 16:57:23 2020 (r358623)
+++ head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Wed Mar 4 17:13:35 2020 (r358624)
@@ -171,6 +171,10 @@ static const struct media mlx5e_mode_table[MLX5E_LINK_
.subtype = IFM_50G_KR2,
.baudrate = IF_Gbps(50ULL),
},
+ [MLX5E_50GBASE_KR4][MLX5E_KR4] = {
+ .subtype = IFM_50G_KR4,
+ .baudrate = IF_Gbps(50ULL),
+ },
};
static const struct media mlx5e_ext_mode_table[MLX5E_EXT_LINK_SPEEDS_NUMBER][MLX5E_LINK_MODES_NUMBER] = {
@@ -317,6 +321,10 @@ static const struct media mlx5e_ext_mode_table[MLX5E_E
},
[MLX5E_50GAUI_2_LAUI_2_50GBASE_CR2_KR2][MLX5E_KR2] = {
.subtype = IFM_50G_KR2,
+ .baudrate = IF_Gbps(50ULL),
+ },
+ [MLX5E_50GAUI_2_LAUI_2_50GBASE_CR2_KR2][MLX5E_KR4] = {
+ .subtype = IFM_50G_KR4,
.baudrate = IF_Gbps(50ULL),
},
[MLX5E_50GAUI_2_LAUI_2_50GBASE_CR2_KR2][MLX5E_SR2] = {
Modified: head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c Wed Mar 4 16:57:23 2020 (r358623)
+++ head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c Wed Mar 4 17:13:35 2020 (r358624)
@@ -199,6 +199,7 @@ static int translate_eth_proto_oper(u32 eth_proto_oper
break;
case MLX5E_PROT_MASK(MLX5E_50GBASE_CR2):
case MLX5E_PROT_MASK(MLX5E_50GBASE_KR2):
+ case MLX5E_PROT_MASK(MLX5E_50GBASE_KR4):
case MLX5E_PROT_MASK(MLX5E_50GBASE_SR2):
*active_width = IB_WIDTH_1X;
*active_speed = IB_SPEED_HDR;
Modified: head/sys/dev/mlx5/port.h
==============================================================================
--- head/sys/dev/mlx5/port.h Wed Mar 4 16:57:23 2020 (r358623)
+++ head/sys/dev/mlx5/port.h Wed Mar 4 17:13:35 2020 (r358624)
@@ -95,6 +95,7 @@ enum mlx5e_link_speed {
MLX5E_40GBASE_SR4 = 15,
MLX5E_40GBASE_LR4_ER4 = 16,
MLX5E_50GBASE_SR2 = 18,
+ MLX5E_50GBASE_KR4 = 19,
MLX5E_100GBASE_CR4 = 20,
MLX5E_100GBASE_SR4 = 21,
MLX5E_100GBASE_KR4 = 22,
More information about the svn-src-head
mailing list