summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-23 09:10:34 -0200
committerRenato Botelho <renato@netgate.com>2015-11-23 09:10:34 -0200
commit175c045d4a1c422d916e6326fe84ccbc0d0a113f (patch)
treeb8b853af14fbe0de33493ba527990a2aa469dd8c /sys/modules
parenta9f1fcf48af9df36b9cd440fdc571067e1eef636 (diff)
parent749b28b1257beaf3e3d4f30302f7dfd901c958ac (diff)
downloadFreeBSD-src-175c045d4a1c422d916e6326fe84ccbc0d0a113f.zip
FreeBSD-src-175c045d4a1c422d916e6326fe84ccbc0d0a113f.tar.gz
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/mlx5/Makefile36
-rw-r--r--sys/modules/mlx5en/Makefile29
2 files changed, 65 insertions, 0 deletions
diff --git a/sys/modules/mlx5/Makefile b/sys/modules/mlx5/Makefile
new file mode 100644
index 0000000..4c19c4c
--- /dev/null
+++ b/sys/modules/mlx5/Makefile
@@ -0,0 +1,36 @@
+# $FreeBSD$
+.PATH: ${.CURDIR}/../../dev/mlx5/mlx5_core ${.CURDIR}/../../ofed/include/linux
+
+KMOD=mlx5
+SRCS= \
+mlx5_alloc.c \
+mlx5_cmd.c \
+mlx5_cq.c \
+mlx5_eq.c \
+mlx5_flow_table.c \
+mlx5_fw.c \
+mlx5_health.c \
+mlx5_mad.c \
+mlx5_main.c \
+mlx5_mcg.c \
+mlx5_mr.c \
+mlx5_pagealloc.c \
+mlx5_pd.c \
+mlx5_port.c \
+mlx5_qp.c \
+mlx5_srq.c \
+mlx5_transobj.c \
+mlx5_uar.c \
+mlx5_vport.c \
+mlx5_wq.c \
+device_if.h bus_if.h vnode_if.h pci_if.h \
+ opt_inet.h opt_inet6.h opt_random.h
+
+SRCS+= linux_compat.c linux_radix.c linux_idr.c
+
+CFLAGS+= -I${.CURDIR}/../../ofed/include
+CFLAGS+= -I${.CURDIR}/../../compat/linuxkpi/common/include
+
+.include <bsd.kmod.mk>
+
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
diff --git a/sys/modules/mlx5en/Makefile b/sys/modules/mlx5en/Makefile
new file mode 100644
index 0000000..b112bf55
--- /dev/null
+++ b/sys/modules/mlx5en/Makefile
@@ -0,0 +1,29 @@
+# $FreeBSD$
+.PATH: ${.CURDIR}/../../dev/mlx5/mlx5_en
+
+KMOD=mlx5en
+SRCS= \
+mlx5_en_ethtool.c \
+mlx5_en_main.c \
+mlx5_en_tx.c \
+mlx5_en_flow_table.c \
+mlx5_en_rx.c \
+mlx5_en_txrx.c \
+device_if.h bus_if.h vnode_if.h pci_if.h \
+ opt_inet.h opt_inet6.h
+
+.if defined(HAVE_TURBO_LRO)
+CFLAGS+= -DHAVE_TURBO_LRO
+SRCS+= tcp_tlro.c
+.endif
+
+.if defined(HAVE_PER_CQ_EVENT_PACKET)
+CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET
+.endif
+
+CFLAGS+= -I${.CURDIR}/../../ofed/include
+CFLAGS+= -I${.CURDIR}/../../compat/linuxkpi/common/include
+
+.include <bsd.kmod.mk>
+
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
OpenPOWER on IntegriCloud