Whamcloud - gitweb
LU-17379 lnet: add LNetPeerDiscovered to LNet API 26/53926/8
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 5 Feb 2024 20:14:30 +0000 (12:14 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Feb 2024 07:15:51 +0000 (07:15 +0000)
commitdba41355565397228f587f13a901b5d762521ed0
tree3ea8beeebc64ca232aaefd305472aa7e8335cef9
parent7498e7c38dffe23752b03bf168f3b5419855b10b
LU-17379 lnet: add LNetPeerDiscovered to LNet API

LNetPeerDiscovered is added to allow lustre check
whether the peer has been successfully discovered by LNet
before attempting to open a connection to it.
For example, given a mount command with a list of NIDs,
Lustre can use LNetAddPeer API to initiate discovery on
every candidate first, and later use LNetPeerDiscovered
to select a reachable peer to connect to.

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I7c9964148a5a2a24d7889b8b4c2e488a433ca258
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53926
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Mikhail Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/include/lnet/api.h
lnet/lnet/peer.c