Whamcloud - gitweb
LU-13027 lnet: fix route consolidation 17/36917/8
authorAmir Shehata <ashehata@whamcloud.com>
Sun, 1 Dec 2019 20:18:38 +0000 (12:18 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 24 Mar 2020 05:17:07 +0000 (05:17 +0000)
commitd6af66216966c116f13f3137bc9daf7380a96165
treea01d9f0cc16082dbd6edddc4d51d4c1049adcf67
parent9dfdc2238be3bc5ad1292cddcad7abf941c4066b
LU-13027 lnet: fix route consolidation

After discovery one or more peers can be merged together. Some
of those peers might be gateways. The routes from the gateways
should be transferred to the MR peer. However, if the MR peer
is already a gateway, then we shouldn't add routes to a remote
net for which a route already exists, unless that route is
higher priority or has less number of hops, in which case we
should replace the route with the better one.

Test-parameters: trivial

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I8790f39a604f4e3d222c1f98c3d28d3dfb03a237
Reviewed-on: https://review.whamcloud.com/36917
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/router.c