Whamcloud - gitweb
LU-17837 kfilnd: Set dev_cpt 68/55068/2
authorRon Gredvig <ron.gredvig@hpe.com>
Fri, 20 Oct 2023 19:46:48 +0000 (19:46 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:49:13 +0000 (04:49 +0000)
commitd1fd0115a4af30356b812d7cb49dec6a76c4cb72
treea9ba63dd7e8fe3ff6fe64368c643018cb7f94a60
parentae26dbc3387a17b763cbc901fa256d894a1f88fb
LU-17837 kfilnd: Set dev_cpt

The dev_cpt value was not being set by kfilnd.

Query the kfabric provider to get the low level
device. Using the device, determine the dev_cpt.

This change is backwards compatible with older
versions of the kfabric provider. If the query
is not supported the dev_cpt is set to
CFS_CPT_ANY.

HPE-bug-id: LUS-11352
Test-Parameters: trivial
Signed-off-by: Ron Gredvig <ron.gredvig@hpe.com>
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Id8af36b7aa5e89969de93dc8db9c0bba03236140
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55068
Reviewed-by: Ian Ziemba <ian.ziemba@hpe.com>
Reviewed-by: Caleb Carlson <caleb.carlson@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/autoconf/lustre-lnet.m4
lnet/klnds/kfilnd/kfilnd.c
lnet/klnds/kfilnd/kfilnd.h
lnet/klnds/kfilnd/kfilnd_dev.c