Whamcloud - gitweb
LU-14668 lnet: Peers added via kernel API should be permanent 88/43788/6
authorChris Horn <chris.horn@hpe.com>
Tue, 25 May 2021 16:17:49 +0000 (11:17 -0500)
committerSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 27 Feb 2023 21:20:39 +0000 (13:20 -0800)
commit9fc14f8fbdf8705e66e244bae8286b85cb0ac249
tree957691c585d64f49ac795d000c2b4d3a2bc06b05
parent050ca1bac9aecd67b6c4566978e70940efa11b7f
LU-14668 lnet: Peers added via kernel API should be permanent

The LNetAddPeer() API allows Lustre to predefine the Peer for LNet.
Originally these peers would be temporary and potentially re-created
via discovery. Instead, let's make these peers permanent. This allows
Lustre to dictate the primary NID of the peer. LNet makes sure this
primary NID is not changed afterwards.

Test-Parameters: trivial
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I3f54c04719c9e0374176682af08183f0c93ef737
lnet/include/lnet/lib-lnet.h
lnet/lnet/api-ni.c
lnet/lnet/peer.c