summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2017-09-06 15:33:23 +0000
committerhselasky <hselasky@FreeBSD.org>2017-09-06 15:33:23 +0000
commit7a3c22b9453334f7f9ccf51c8caf9926442af27b (patch)
treeeb3ab7a358fe2f1ffe0b345b9b0e27dcde88c2ff /sys/modules
parentdee4e67672c3fcd741bc71849cf462fd38044dd7 (diff)
downloadFreeBSD-src-7a3c22b9453334f7f9ccf51c8caf9926442af27b.zip
FreeBSD-src-7a3c22b9453334f7f9ccf51c8caf9926442af27b.tar.gz
MFC r322810 and r322830:
Add new mlx5ib(4) driver to the kernel source tree which supports Remote DMA over Converged Ethernet, RoCE, for the ConnectX-4 series of PCI express network cards. There is currently no user-space support and this driver only supports kernel side non-routable RoCE V1. The krping kernel module can be used to test this driver. Full user-space support including RoCE V2 will be added as part of the ongoing upgrade to ibcore from Linux 4.9. Otherwise this driver is feature equivalent to mlx4ib(4). The mlx5ib(4) kernel module will only be built when WITH_OFED=YES is specified. Approved by: re (marius) Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile2
-rw-r--r--sys/modules/mlx5ib/Makefile24
2 files changed, 26 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index e183bf0..f104bfb 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -225,6 +225,7 @@ SUBDIR= \
${_mlxen} \
${_mlx5} \
${_mlx5en} \
+ ${_mlx5ib} \
${_mly} \
mmc \
mmcsd \
@@ -762,6 +763,7 @@ _mly= mly
.if ${MK_OFED} != "no" || defined(ALL_MODULES)
_mlx4= mlx4
_mlx4ib= mlx4ib
+_mlx5ib= mlx5ib
_mlxen= mlxen
_mthca= mthca
.endif
diff --git a/sys/modules/mlx5ib/Makefile b/sys/modules/mlx5ib/Makefile
new file mode 100644
index 0000000..bc554ee
--- /dev/null
+++ b/sys/modules/mlx5ib/Makefile
@@ -0,0 +1,24 @@
+# $FreeBSD$
+.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_ib
+
+KMOD=mlx5ib
+SRCS= \
+mlx5_ib_ah.c \
+mlx5_ib_cq.c \
+mlx5_ib_doorbell.c \
+mlx5_ib_mad.c \
+mlx5_ib_main.c \
+mlx5_ib_mem.c \
+mlx5_ib_mr.c \
+mlx5_ib_qp.c \
+mlx5_ib_roce.c \
+mlx5_ib_srq.c \
+device_if.h bus_if.h vnode_if.h pci_if.h \
+opt_inet.h opt_inet6.h
+
+CFLAGS+= -I${SRCTOP}/sys/ofed/include
+CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
+
+.include <bsd.kmod.mk>
+
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
OpenPOWER on IntegriCloud