Whamcloud - gitweb
LU-14114 lnet: print device status in net show command 69/44169/2
authorCyril Bordage <cbordage@whamcloud.com>
Wed, 7 Jul 2021 13:27:54 +0000 (15:27 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 22 Jul 2021 01:50:23 +0000 (01:50 +0000)
commitf75ff33d9fbefd6995a26693032a32a0ba211b51
treebdbe5fbe357b0dfe7dc27f5d23f71f959a1484a7
parent601c48f3ecaefcb644f236344e139088f76a2a07
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.

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