Whamcloud - gitweb
LU-11297 lnet: handle router health off 34/33634/31
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 9 Nov 2018 18:31:27 +0000 (10:31 -0800)
committerAmir Shehata <ashehata@whamcloud.com>
Fri, 7 Jun 2019 18:20:09 +0000 (18:20 +0000)
commit00a2932b0aa7fe7584b5f46456d2ffaa57672716
tree858a48afef796f239cb8e6ba89fa0547f4d78664
parentf9ad0d13b092e483e6c25ac30b49812f9fbe8538
LU-11297 lnet: handle router health off

Routing infrastructure depends on health infrastructure to manage
route status. However, health can be turned off. Therefore, we need
to enable health for gateways in order to monitor them properly.
Each peer now has its own health sensitivity. When adding a route
the gateway's health sensitivity can be explicitly set from lnetctl
or if not specified then it'll default to 1, thereby turning health
on for that gateway, allowing peer NI recovery if there is a failure.

Test-Parameters: forbuildonly
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: Ibae33d595e97d0eec432ae8f5d51898ce0776f01
Reviewed-on: https://review.whamcloud.com/33634
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Tested-by: Jenkins
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/lnet/api-ni.c
lnet/lnet/config.c
lnet/lnet/lib-msg.c
lnet/lnet/peer.c
lnet/lnet/router.c