Whamcloud - gitweb
LU-9121 lnet: Preferred gateway selection 53/34353/46
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 20 Feb 2019 02:13:40 +0000 (18:13 -0800)
committerAmir Shehata <ashehata@whamcloud.com>
Wed, 17 Jun 2020 20:29:02 +0000 (20:29 +0000)
commit870a27ac4e00007208ca3df58ccf9c744028ebc3
tree3e2ee6c30a99cecd06f47935450fd1768f1739f2
parente9268fcea2ddb88bc8447c0985fbe9589d71138a
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