Whamcloud - gitweb
LU-14668 lnet: Peers added via kernel API should be permanent 88/43788/7
authorChris Horn <chris.horn@hpe.com>
Tue, 25 May 2021 16:17:49 +0000 (11:17 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Mar 2023 03:27:07 +0000 (03:27 +0000)
commit41733dadd8ad0e87e44dd19e25e576e90484cb9b
tree20e00a373bd73615e2b71fdbf0c7019dc8012a52
parentaacb16191a72bc6db1155030849efb0d6971a572
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
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/43788
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/lnet/api-ni.c
lnet/lnet/peer.c