Whamcloud - gitweb
LU-13713 lnet: check rtr_nid is a gateway 75/39175/2
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 24 Jun 2020 23:46:58 +0000 (16:46 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 10 Jul 2020 16:53:06 +0000 (16:53 +0000)
commit07397a2e7473cd1e524c24d18774accf05adf8ad
treed03ee5b71e81d6c4f54100aec5c491020a38cd39
parent4b0d3c0e41201716f4a1bb2da17254695b623d7e
LU-13713 lnet: check rtr_nid is a gateway

The rtr_nid is specified for all REPLY/ACK. However it is possible
for the route through the gateway specified by rtr_nid to be removed.
In this case we don't want to use it. We should lookup alternative
paths.

This patch checks if the peer looked up is indeed a gateway. If it's
not a gateway then we attempt to find another path. There is no need
to fail right away. It's not a hard requirement to fail if the default
rtr_nid is not valid.

Test-Parameters: trivial
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: Ic1c93b7c6c2c8060e2cfeb8fb1cb875dbc3010f7
Reviewed-on: https://review.whamcloud.com/39175
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-move.c