Whamcloud - gitweb
LU-14668 lnet: Peers added via kernel API should be permanent 88/43788/5
authorChris Horn <chris.horn@hpe.com>
Tue, 25 May 2021 16:17:49 +0000 (11:17 -0500)
committerSerguei Smirnov <ssmirnov@whamcloud.com>
Sat, 25 Feb 2023 01:31:56 +0000 (17:31 -0800)
commitf5008e02d8a49525b5d85887a13aad27e4a23cfd
tree957691c585d64f49ac795d000c2b4d3a2bc06b05
parent551867989ac96d50f66eb63c5be3f3b4d9b5f3a0
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