Whamcloud - gitweb
LU-14945 lnet: don't use hops to determine the route state 74/44674/6
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 16 Aug 2021 23:37:30 +0000 (16:37 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Sep 2021 04:43:58 +0000 (04:43 +0000)
commit3f2844dc9333c86452c37bd7b4519729b1351371
treee71176830dc2aa1a5ab66f825767da2daab129ac
parent7fdd664b3518e5e8d8a243898d48d9c62c22e18a
LU-14945 lnet: don't use hops to determine the route state

NodeA <-tcp1-> GW1 <-tcp2-> GW2 <-tcp3-> NodeB

Assuming GW1 knows how to reach tcp3 network and GW2 knows
how to reach tcp1 network, it should be possible to add routes
without specifying hop=2 on nodes A and B to reach tcp3 and tcp1
respectively and then be able to lnetctl ping between them.
Changes introduced by LU-13785 interpret default hops to be
equivalent to hop=1 set explicitly for the purpose of determining
route aliveness, which results in the routes created as described
above to be considered "down".

Fix it so that default hop setting doesn't prevent
the multi-hop scenario from working.

Test-Parameters: trivial
Fixes: 2e07619477 ("LU-13785 lnet: Use lr_hops for avoid_asym_router_failure")
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I341ccdfe156434b0cb306359acc91a9193b44f7b
Reviewed-on: https://review.whamcloud.com/44674
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/router.c