lkml.org 
[lkml]   [2018]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] IB/core: Set invalid active widths to 1X when port is not active
Date
From: Honggang Li <honli@redhat.com>

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(-)

--
2.14.GIT

\
 
 \ /
  Last update: 2018-03-15 10:03    [W:0.084 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site