Whamcloud - gitweb
LU-13785 lnet: Use lr_hops for avoid_asym_router_failure 62/39362/7
authorChris Horn <chris.horn@hpe.com>
Tue, 14 Jul 2020 04:08:28 +0000 (23:08 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Apr 2021 06:30:15 +0000 (06:30 +0000)
commit2e07619477684f287a2399ccdbbde0a71289574b
tree6481111fed944fcd947435531e329fff8380bc4d
parent55d5235354d49aee0a330ad64beef4ed9004a27f
LU-13785 lnet: Use lr_hops for avoid_asym_router_failure

In order for the asymmetric route failure avoidance feature to work
properly it needs to know what the hop count of a route should be.
This information is defined by the lr_hops field of the lnet_route.
The lr_single_hop is what discovery was able to determine the hop
count actually is (single or multi) based on the last ping reply.
If a remote interface on a router goes missing, the route may be
classified as multi-hop by discovery, but it should be considered
single-hop for the purposes of avoiding asymmetric route failure.

HPE-bug-id: LUS-9099
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I9c255f9a2175d964661850277808dae96ff7735c
Reviewed-on: https://review.whamcloud.com/39362
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/router.c