git: 329b13f3425e - main - nfsclrdma: Add build glue for nfsclrdma sources
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Nov 2026 23:37:14 UTC
The branch main has been updated by rmacklem:
URL: https://cgit.FreeBSD.org/src/commit/?id=329b13f3425e8ba095025977b62604bb3e2cb424
commit 329b13f3425e8ba095025977b62604bb3e2cb424
Author: Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2026-11-26 23:34:59 +0000
Commit: Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2026-11-26 23:34:59 +0000
nfsclrdma: Add build glue for nfsclrdma sources
Commit 80bee4d836 added the sources for client side NFS
over RDMA.
This patch adds the code to build these sources as a
module called nfsclrdma.ko or in the kernel when
kernel options NFSCL and OFED are specified.
Reviewed by: markj
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D61926
Fixes: 80bee4d83637 ("nfsclrdma: Add code to support client side NFS over RDMA")
---
sys/conf/files | 5 +++++
sys/modules/Makefile | 2 ++
sys/modules/nfsclrdma/Makefile | 16 ++++++++++++++++
3 files changed, 23 insertions(+)
diff --git a/sys/conf/files b/sys/conf/files
index b78d84eaff43..846e1c365587 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -4930,6 +4930,11 @@ ofed/drivers/infiniband/ulp/ipoib/ipoib_verbs.c optional ipoib \
#ofed/drivers/infiniband/ulp/ipoib/ipoib_vlan.c optional ipoib \
# compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/ipoib/"
+ofed/drivers/infiniband/ulp/nfsclrdma/clnt_rdma.c optional nfscl ofed \
+ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/nfsclrdma/"
+ofed/drivers/infiniband/ulp/nfsclrdma/xprt_verbs.c optional nfscl ofed \
+ compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/nfsclrdma/"
+
ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c optional sdp inet \
compile-with "${OFED_C} -I$S/ofed/drivers/infiniband/ulp/sdp/"
ofed/drivers/infiniband/ulp/sdp/sdp_main.c optional sdp inet \
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 35c761215597..88a88a37ca21 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -294,6 +294,7 @@ SUBDIR= \
${_netgraph} \
${_nfe} \
nfscl \
+ ${_nfsclrdma} \
nfscommon \
nfsd \
nfslockd \
@@ -577,6 +578,7 @@ _ibcore= ibcore
_ipoib= ipoib
_iser= iser
_mthca= mthca
+_nfsclrdma= nfsclrdma
_rdma= rdma
.endif
.endif
diff --git a/sys/modules/nfsclrdma/Makefile b/sys/modules/nfsclrdma/Makefile
new file mode 100644
index 000000000000..8d4358f57e41
--- /dev/null
+++ b/sys/modules/nfsclrdma/Makefile
@@ -0,0 +1,16 @@
+.PATH: ${SRCTOP}/sys/ofed/drivers/infiniband/ulp/nfsclrdma
+
+KMOD=nfsclrdma
+SRCS= \
+ clnt_rdma.c \
+ xprt_verbs.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
+
+CFLAGS+= -I${SRCTOP}/sys/ofed/include
+CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
+CFLAGS+= ${LINUXKPI_INCLUDES}
+
+.include <bsd.kmod.mk>
+
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}