Whamcloud - gitweb
LU-16393 o2iblnd: add IBLND_REJECT_EARLY reject reason 51/51651/3
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Thu, 13 Jul 2023 00:29:56 +0000 (17:29 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Aug 2023 05:39:26 +0000 (05:39 +0000)
commit673ff86a84ad5d11cde24aa7411c45385ad1c633
tree144fbfe17ba36c6dcfdad1b7cc968c5afc408255
parent9183fa655af4909623ea259f1b2bb3cbca00b8ba
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.

Test-parameters: trivial
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I59efb2fdf5d5ceabb6ff23f638ec85da82d57b99
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51651
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: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd-idl.h
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/lnet/api-ni.c