Whamcloud - gitweb
LU-16393 o2iblnd: add IBLND_REJECT_EARLY reject reason
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Thu, 13 Jul 2023 00:29:56 +0000 (17:29 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Aug 2023 16:16:47 +0000 (16:16 +0000)
commit1ea489f05b389609662845a746d4e4b07095eae4
tree176a524710246f668fb928e4aa0d8bfe748b4ccb
parent74c0aacebb4111116ea1db7546fb5575127f46cd
LU-16393 o2iblnd: add IBLND_REJECT_EARLY reject reason

Add IBLND_REJECT_EARLY reason for rejecting connection request:
to be used when the device doesn't have any nets added yet or
when there's no active NIs on the net to handle the connection.
These conditions are supposed to occur only when LNI is being
added/initialized, so report at CNETERROR level vs. CERROR.

In lnet, set NI state to ACTIVE only after it has been added
to the list of NIs for the net, so that LND can know that
the NI can be used to accept connections.

Lustre-change: https://review.whamcloud.com/51651
Lustre-commit: 673ff86a84ad5d11cde24aa7411c45385ad1c633

Test-parameters: trivial
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I59efb2fdf5d5ceabb6ff23f638ec85da82d57b99
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52015
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/lnet/api-ni.c