Whamcloud - gitweb
LU-9120 lnet: add health value per ni 61/32761/10
authorAmir Shehata <amir.shehata@intel.com>
Fri, 16 Feb 2018 22:10:33 +0000 (14:10 -0800)
committerAmir Shehata <ashehata@whamcloud.com>
Fri, 17 Aug 2018 19:52:54 +0000 (19:52 +0000)
commitd54afb86116c0640d7a201571b337042c87a3e40
treede1d0518661a3d6894f49d967c84f4e26dadbbc2
parent4e48761a57193279ce3f3d5170c3e38cf287b59a
LU-9120 lnet: add health value per ni

Add a health value per local network interface. The health value
reflects the health of the NI. It is initialized to 1000. 1000 is
chosen to be able to granularly decrement the health value on error.

If the NI is absolutely not healthy that will be indicated by an
LND event, which will flag that the NI is down and should never
be used.

Test-Parameters: forbuildonly
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I0fb362a84c110f482633fb86a81c4d7b26c3ecba
Reviewed-on: https://review.whamcloud.com/32761
Tested-by: Jenkins
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Chris Horn <hornc@cray.com>
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/lnet/api-ni.c
lnet/lnet/lib-move.c