Skip to content

IB/core: Set invalid active widths to 1X when port is not active

Honggang LI linux-rdma lkml 1 version Applied

Status from this message: Applied to for-next, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2IB/core: Set speed string to SDR for invalid active ratesdrivers/infiniband/core/sysfs.c+1 -01 reply
2/2IB/core: Set width to 1X for invalid active widths when port is downdrivers/infiniband/core/sysfs.c+11 -46 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] IB/core: Set invalid active widths to 1X when port is not active

From: Honggang Li <[email protected]>

Before the mlx5 RoCE port negotiate the active rate and width with remote side, the mlx5_ib driver set them to zero.

The tool 'ibstat' of 'infiniband-diags' package will panic as it read invalid width from the sys file. Set the active widths to lowest valid vaule as what ib_core module did for invalid rates.

Honggang Li (2):
IB/core: Set speed string to SDR for invalid active rates IB/core: Set width to 1X for invalid active widths when port is down

 drivers/infiniband/core/sysfs.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
Signature · 1 line
2.14.GIT