Whamcloud - gitweb
LU-13779 lnet: Correct asymmetric route detection 49/39349/7
authorChris Horn <chris.horn@hpe.com>
Fri, 10 Jul 2020 17:33:50 +0000 (12:33 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 10 Mar 2021 08:02:46 +0000 (08:02 +0000)
commit955080c3ae3f33c98e068f52a096761ea28624b7
tree551dfec40a089aa10d1f987a52c2a7fcdf32de46
parenta3275d1d79df5ab5f7ac2cbb5cdef982e8f3c959
LU-13779 lnet: Correct asymmetric route detection

Failure to lookup the remote net for LNET_NIDNET(src_nid) indicates an
asymmetric route, but we do not drop the message in this case. Another
problem with this code is that there is no guarantee that we'll have a
route->lr_lnet that matches the net of ni->ni_nid.

We can move the asymmetric route detection to after we have looked up
the lpni of from_nid. Then, we can look at just the routes associated
with the gateway that owns the lpni. If one of those routes has
lr_net == LNET_NIDNET(src_nid), then the route is symmetrical.

Fixes: 4932febc12 ("LU-11894 lnet: check for asymmetrical route messages")
Test-Parameters: trivial
HPE-bug-id: LUS-9087
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I8044d3f53e6f000c1e4d7c4e34b3b21afe0f9711
Reviewed-on: https://review.whamcloud.com/39349
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-move.c