[LU-13761] MOFED 5.1 support Created: 08/Jul/20  Updated: 25/Feb/21  Resolved: 15/Sep/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.14.0, Lustre 2.12.6

Type: Improvement Priority: Minor
Reporter: Sergey Gorenko Assignee: Sergey Gorenko
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
Related
is related to LU-14297 Can't compile lustre client against M... Resolved
is related to LU-13783 Support for linux kernel version 5.8 Resolved
Epic/Theme: build
Rank (Obsolete): 9223372036854775807

 Description   

I'm testing MOFED 5.1 Beta candidate with lustre master. And I got the following compilation error:
Type 'make' to build Lustre.
+ grep -q 'define[[:space:]]*HAVE_SERVER_SUPPORT' config.h
+ make -j24 -s
Making all in .
/tmp/rpmbuild-lustre--ToFAMKNQ/BUILD/lustre-2.13.54_148_g3fcceea/lnet/klnds/o2iblnd/o2iblnd_cb.c: In function 'kiblnd_reject':
/tmp/rpmbuild-lustre--ToFAMKNQ/BUILD/lustre-2.13.54_148_g3fcceea/lnet/klnds/o2iblnd/o2iblnd_cb.c:2296:9: error: too few arguments to function 'rdma_reject'
rc = rdma_reject(cmid, rej, sizeof(*rej));
The error is related to a change in RDMA_CM API. The change came to MOFED from the upstream kernel:

 

commit 8094ba0ace7f6cd1e31ea8b151fba3594cadfa9a
Author: Leon Romanovsky <leonro@mellanox.com>
Date: Tue May 26 13:33:04 2020 +0300
RDMA/cma: Provide ECE reject reason
IBTA declares "vendor option not supported" reject reason in REJ messages
 if passive side doesn't want to accept proposed ECE options.
Due to the fact that ECE is managed by userspace, there is a need to let
 users to provide such rejected reason.
Link: https://lore.kernel.org/r/20200526103304.196371-7-leon@kernel.org
 Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
 Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

And the same error is expected with kernel 5.8.

I have a patch for the lustre to support MOFED 5.1 and kernel 5.8. I will push the patch for review soon.

 



 Comments   
Comment by Gerrit Updater [ 08/Jul/20 ]

Sergey Gorenko (sergeygo@mellanox.com) uploaded a new patch: https://review.whamcloud.com/39323
Subject: LU-13761 o2ib: Fix compilation with MOFED 5.1
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4ddc15e21351b7a8a021c00e275c79da25b26659

Comment by Gerrit Updater [ 07/Aug/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39323/
Subject: LU-13761 o2ib: Fix compilation with MOFED 5.1
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 956deb0fe8195c7a0c38c66a5a8cc1e95c2c245e

Comment by Peter Jones [ 07/Aug/20 ]

Landed for 2.14

Comment by Gerrit Updater [ 01/Sep/20 ]

Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39781
Subject: LU-13761 o2ib: Fix compilation with MOFED 5.1
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 3aefc95e209cf053f05426f72b950af8a7ce75fd

Comment by Gerrit Updater [ 15/Sep/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39781/
Subject: LU-13761 o2ib: Fix compilation with MOFED 5.1
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: ba702c79fbf81da830e0ba3d79f1f4efd9d50310

Generated at Sat Feb 10 03:03:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.