Whamcloud - gitweb
LU-14668 lnet: Peers added via kernel API should be permanent
authorChris Horn <chris.horn@hpe.com>
Tue, 25 May 2021 16:17:49 +0000 (11:17 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 28 Feb 2023 04:19:53 +0000 (04:19 +0000)
commitce22e31b75f30e732fb586300d987aa71cb2c3ac
tree5f227a5cf750bf641d993a5b61d6ebfb33de7fb4
parent084f22e5e3177a3f77cd8616edd982b69dc4875c
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.

Lustre-change: https://review.whamcloud.com/43788
Lustre-commit: TBD (f5008e02d8a49525b5d85887a13aad27e4a23cfd)

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/ex/lustre-release/+/50115
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/lnet/api-ni.c
lnet/lnet/peer.c