Whamcloud - gitweb
LU-9120 lnet: reset health value 73/32773/15
authorAmir Shehata <amir.shehata@intel.com>
Mon, 2 Jul 2018 21:36:50 +0000 (14:36 -0700)
committerAmir Shehata <ashehata@whamcloud.com>
Fri, 17 Aug 2018 20:17:40 +0000 (20:17 +0000)
commit2f5a6d1233ac19fb46e9f9d18364e86eee0d6f19
tree67cc8abed1301feeadb19efa8e3d1c258ab84906
parent6b1571209a9938719b081465f1ee327380a70554
LU-9120 lnet: reset health value

Added an IOCTL to set the local or peer ni health value.
This would be useful in debugging where we can test the selection
algorithm and recovery mechanism by reducing the health of an
interface.

If the value specified is -1 then reset the health value to maximum.
This is useful to reset the system once a network issue has been
resolved. There would be no need to wait for the interface to go to
fully healthy on its own. It might be desirable to shortcut the
process.

Test-Parameters: forbuildonly
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I45a5844bbaa72f769e37a39526773ef4c71118c0
Reviewed-on: https://review.whamcloud.com/32773
Tested-by: Jenkins
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/include/uapi/linux/lnet/libcfs_ioctl.h
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/lnet/api-ni.c
lnet/lnet/lib-msg.c
lnet/lnet/peer.c