Whamcloud - gitweb
LU-12222 lnet: Check if we're sending to ourselves 78/35778/9
authorChris Horn <hornc@cray.com>
Mon, 12 Aug 2019 22:40:55 +0000 (17:40 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 20 Dec 2019 03:25:26 +0000 (03:25 +0000)
commite4af756e1f428a9f7883bf883f66941defb1447f
treea5c39ce13573f64f947c0b543e58361a7940acfb
parent9cf6596da2b5d83db1ceea66c33cb8ab765a7f94
LU-12222 lnet: Check if we're sending to ourselves

It's desirable to avoid taking a send credit when sending messages to
ourselves. Check if dst_nid is one of our own, and use the lolnd for
the send accordingly.

There are two exceptions:
1. Recovery messages must be sent to the lnet_ni that is being
   recovered.
2. If a source NID is specified then we need to send via the
   associated NI.

Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I656c6b1ef18ccb9b18bca65839de7c487981ebdd
Reviewed-on: https://review.whamcloud.com/35778
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/lib-move.c