Whamcloud - gitweb
LU-14668 lnet: Peers added via kernel API should be permanent 31/51131/3
authorChris Horn <chris.horn@hpe.com>
Tue, 25 May 2021 16:17:49 +0000 (11:17 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Aug 2023 06:19:44 +0000 (06:19 +0000)
commitf63e87f0a88a856d5cc38039afef704676ff5521
treebac2e0bf473f43eafd6e45443e0340d05f07b2ab
parentb341288179d9b3ad594b461586d826d6811db5a1
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: 41733dadd8ad0e87e44dd19e25e576e90484cb9b

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/+/51131
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/lnet/api-ni.c
lnet/lnet/peer.c