Whamcloud - gitweb
LU-12919 lnet: Fix source specified route selection 22/36622/2
authorChris Horn <hornc@cray.com>
Thu, 31 Oct 2019 02:57:45 +0000 (21:57 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Jan 2020 05:30:56 +0000 (05:30 +0000)
commitf0aa632d42551fcc0e7950e13b14cee70d8bab37
tree1b7490944f0da2f91302e9317add6aaf80731257
parent609246d13db6de87d1cf32b34607346ff56dd30d
LU-12919 lnet: Fix source specified route selection

If lnet_send() is called with a specific src_nid, but
rtr_nid == LNET_NID_ANY and the message needs to be routed, then we
need to ensure that the lnet_peer_ni of our next hop is on the same
network as the lnet_ni associated with the src_nid. Otherwise we
may end up choosing an lnet_peer_ni that cannot be reached from
the specified source.

Test-Parameters: trivial
Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: Idc5b808f90170a3480d523ba4726cc48c3387ddb
Reviewed-on: https://review.whamcloud.com/36622
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-move.c