Whamcloud - gitweb
LU-12511 lnet: rework lnd module loading 46/57946/3
authorJames Simmons <jsimmons@infradead.org>
Mon, 3 Feb 2025 15:16:56 +0000 (10:16 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Feb 2025 05:33:13 +0000 (05:33 +0000)
commit6e76d3569bf602d71745b8151417cff7ddfd7df4
tree9190febf738897ea4650e4c8562d7141d7e8ccc6
parent6d9cfdeda92613f09eabd0b9f2f3402432691bc8
LU-12511 lnet: rework lnd module loading

The kernel IS_MODULE() only works in the positive, ie no ifndef.
So rework the LND module loading code to handle if modules are
enabled.

Test-Parameters: trivial testlist=sanity-lnet
Change-Id: Ie97b00b6b5c21d6e20acf72f796707630369251e
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57946
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c