Whamcloud - gitweb
LU-13029 lnet: fix asym routing with multi-hop 14/36914/7
authorAmir Shehata <ashehata@whamcloud.com>
Thu, 28 Nov 2019 23:44:27 +0000 (15:44 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 24 Mar 2020 05:16:58 +0000 (05:16 +0000)
commit9f337d94e7ad7ac6bd6bbc324996ab0eaba9bd66
treee2702e500ec9404070f577d4d3e73e103c045737
parentbee5cd85a8e35b8dbf0e16e9a380812f74d4f422
LU-13029 lnet: fix asym routing with multi-hop

When a system is setup with multi-hop routing the next-hop
gateway, one off the nodes, will not have an interface
on the remote network. The route should still be considered
alive even if lnet_avoid_asym_routing is set

The code sets a route to be multi-hop if the gateway it uses
does not have an NI on the remote net of the route. The underlying
assumption here is that routing configuration is correct

To aid in fault detection a warning message is printed out if
the route is set to be multi-hop but the route hop count is less
than 1.

Added a YAML field in the:
lnetctl route show -v
output to print the type of the route: single-hop or multi-hop.

Test-parameters: trivial

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I0a96263e2903974ec50d46bd56e550cde7d86e8c
Reviewed-on: https://review.whamcloud.com/36914
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Doug Oucharek <dougso@me.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-types.h
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/lnet/router.c
lnet/utils/lnetconfig/liblnetconfig.c