Whamcloud - gitweb
LU-14114 lnet: print device status in net show command
authorCyril Bordage <cbordage@whamcloud.com>
Wed, 7 Jul 2021 13:27:54 +0000 (15:27 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 30 Jul 2021 17:43:00 +0000 (17:43 +0000)
commit0790e60f0881f7e43923025dd0b3ad645418743e
treef10f259f5a979f1c8a9b94e25ae749b74be3932e
parent15f766f436ebd66b2b0e6385918c51b7b44601c5
LU-14114 lnet: print device status in net show command

A device can be in fatal state, if the cable was disconnected, or the
port brought down on the switch side. In these cases, the LND (o2iblnd
for now), will flag the device in fatal state. That device will not be
used any further. However, it's health will not be decremented. This
causes some confusion when examining the state of the node.
It is better to print the device status in the output of the lnetctl
net show command.

Lustre-change: https://review.whamcloud.com/44169
Lustre-commit: f75ff33d9fbefd6995a26693032a32a0ba211b51

Signed-off-by: Cyril Bordage <cbordage@whamcloud.com>
Change-Id: I7c635ab1062f6153449fcec1bc07585065818a72
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44383
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/lnet/api-ni.c
lnet/utils/lnetconfig/liblnetconfig.c