Whamcloud - gitweb
LU-9121 lnet: Preferred gateway selection 86/40186/1
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 20 Feb 2019 02:13:40 +0000 (18:13 -0800)
committerAmir Shehata <ashehata@whamcloud.com>
Thu, 8 Oct 2020 21:27:22 +0000 (14:27 -0700)
commit05875427e4fc9a902a87d83d8e39f26c003ad71e
treeafb183f9d9bc76dba9477aa2b065caa5388df3dd
parenta30e9aaa52e02c7e945f87be47d7bfdf28695592
LU-9121 lnet: Preferred gateway selection

Add mechanism for managing preferred gateway lists.
When selecting a route through a gateway, if there exists
a preferred gateway list for the destination peer, then choose
the preferred gateway. If there are multiple preferred
gateways, to make the selection, use in order of decreasing
importance: route priority, number of hops, number of available
tx credits on the associated lpni and route sequence counters.
If there are no preferred routes, select the best route
available using the same criteria.

Test-Parameters: trivial testlist=lnet-selftest,sanity-lnet
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: If46920cf7b79aa8b211d6c0a35995edce9b1699a
Reviewed-on: https://review.whamcloud.com/34353
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/lnet/lib-move.c
lnet/lnet/peer.c