Extra patches with NDR support
Subsystems (2)
cover Extra patches with NDR support
From: Leon Romanovsky <[email protected]>
Addition to the IPoIB patches https://lore.kernel.org/linux-rdma/[email protected]/T/#u
Thanks
Meir Lichtinger (2):
IB/core: Add support for NDR link speed
IB/mlx5: Add support for NDR link speed
drivers/infiniband/core/sysfs.c | 4 ++++ drivers/infiniband/hw/mlx5/main.c | 12 ++++++++++++ 2 files changed, 16 insertions(+)
--
2.26.2
PATCH 1/2 IB/core: Add support for NDR link speed
From: Meir Lichtinger <[email protected]>
Add new IBTA speed NDR, supporting signaling rate of 100Gb.
--- drivers/infiniband/core/sysfs.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/infiniband/core/sysfs.c +4 -0
@@ -273,6 +273,10 @@ static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused, speed =" HDR" ; rate =500 ;break ; +case IB_SPEED_NDR : + speed =" NDR" ; + rate =1000 ; +break ;case IB_SPEED_SDR :default :/* default to SDR for invalid rates */ speed =" SDR" ;
Signature · 1 line
2.26.2
PATCH 2/2 IB/mlx5: Add support for NDR link speed
In reply to Leon RomanovskyFrom: Meir Lichtinger <[email protected]>
The IBTA specification has new speed - NDR. That speed supports signaling rate of 100Gb. mlx5 IB driver translates link modes reported by ConnectX device to IB speed and width. Added translation of new 100Gb, 200Gb and 400Gb link modes to NDR IB type and width of x1, x2 or x4 respectively.
--- drivers/infiniband/hw/mlx5/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/infiniband/hw/mlx5/main.c +12 -0
@@ -419,10 +419,22 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u16 *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 :return -EINVAL ; }
Signature · 1 line
2.26.2
Quoted 9 lines · Leon Romanovsky
From: Leon Romanovsky <[email protected]>
Addition to the IPoIB patches https://lore.kernel.org/linux-rdma/[email protected]/T/#u
Thanks
Meir Lichtinger (2):
IB/core: Add support for NDR link speed
IB/mlx5: Add support for NDR link speed
Applied to for-next, thanks
Jason