summaryrefslogtreecommitdiffstats
path: root/sys/modules/cxgb
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2012-05-25 03:00:34 +0000
committerbz <bz@FreeBSD.org>2012-05-25 03:00:34 +0000
commit1bc3ff14452750fb0acb81a62d92036e27d606da (patch)
tree6600369f49f737a33fa0206ded61caa021a6ae64 /sys/modules/cxgb
parentf528e8d71f3a9fe1953f7fb822571d3050531acb (diff)
downloadFreeBSD-src-1bc3ff14452750fb0acb81a62d92036e27d606da.zip
FreeBSD-src-1bc3ff14452750fb0acb81a62d92036e27d606da.tar.gz
MFp4 bz_ipv6_fast:
Allow LRO to work on IPv6 as well. Fix the module Makefile to at least properly inlcude opt_inet6.h and allow builds without INET or INET6. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
Diffstat (limited to 'sys/modules/cxgb')
-rw-r--r--sys/modules/cxgb/cxgb/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/modules/cxgb/cxgb/Makefile b/sys/modules/cxgb/cxgb/Makefile
index 9a433b2..291ebe1 100644
--- a/sys/modules/cxgb/cxgb/Makefile
+++ b/sys/modules/cxgb/cxgb/Makefile
@@ -8,9 +8,21 @@ SRCS= cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c
SRCS+= cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c
SRCS+= cxgb_sge.c cxgb_offload.c cxgb_tn1010.c
SRCS+= device_if.h bus_if.h pci_if.h
-SRCS+= opt_inet.h opt_zero.h opt_sched.h
+SRCS+= opt_inet.h opt_inet6.h opt_zero.h opt_sched.h
SRCS+= uipc_mvec.c
CFLAGS+= -g -DDEFAULT_JUMBO -I${CXGB}
+.if !defined(KERNBUILDDIR)
+.if ${MK_INET_SUPPORT} != "no"
+opt_inet.h:
+ @echo "#define INET 1" > ${.TARGET}
+.endif
+
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ @echo "#define INET6 1" > ${.TARGET}
+.endif
+.endif
+
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud