Whamcloud - gitweb
LU-11477 lnet: handle health for incoming messages 01/33301/34
authorAmir Shehata <ashehata@whamcloud.com>
Thu, 4 Oct 2018 23:21:48 +0000 (16:21 -0700)
committerAmir Shehata <ashehata@whamcloud.com>
Fri, 7 Jun 2019 18:18:23 +0000 (18:18 +0000)
commit18c850cb91a64fcc38ae0801e6fab983607ded71
tree002da9532d077661b740999be8e51dc2641fe73c
parentcab57464e17b9d21f37f7234bb3d54451a7829fc
LU-11477 lnet: handle health for incoming messages

In case of routers (as well as for the general case) it's important to
update the health of the ni/lpni for incoming messages. For an lpni
specifically when we receive a message is when we know that the lpni
is up.

A percentage router health is required in order to send a message to a
gateway. That defaults to 100, meaning that a router interface has to
be absolutely healthy in order to send to it. This matches the current
behavior. So if a router interface goes down an its health goes down
significantly, but then it comes back up again; either we receive a
message from it or we discover it and get a reply, then in order to
start using that router interface again we have to boost its health
all the way up to maximum.

This behavior is special cased for routers.

Test-Parameters: forbuildonly
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: Ida6c23f95dbef56c2e6ed7b6d03743939d8b30a0
Reviewed-on: https://review.whamcloud.com/33301
Tested-by: Jenkins
lnet/lnet/lib-msg.c