summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2012-05-25 03:02:56 +0000
committerbz <bz@FreeBSD.org>2012-05-25 03:02:56 +0000
commit1a89a35532406353a4144508de8df3d2733f1c79 (patch)
tree9b3ddf3ed1f140f0f93d5da90b514d0a30ae7c5b /sys/modules
parent1bc3ff14452750fb0acb81a62d92036e27d606da (diff)
downloadFreeBSD-src-1a89a35532406353a4144508de8df3d2733f1c79.zip
FreeBSD-src-1a89a35532406353a4144508de8df3d2733f1c79.tar.gz
MFp4 bz_ipv6_fast:
Add TSO6 and LRO/IPv6 support. 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')
-rw-r--r--sys/modules/ixgbe/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/modules/ixgbe/Makefile b/sys/modules/ixgbe/Makefile
index c18821f..634dfbf 100644
--- a/sys/modules/ixgbe/Makefile
+++ b/sys/modules/ixgbe/Makefile
@@ -2,10 +2,23 @@
.PATH: ${.CURDIR}/../../dev/ixgbe
KMOD = ixgbe
SRCS = device_if.h bus_if.h pci_if.h
+SRCS += opt_inet.h opt_inet6.h
SRCS += ixgbe.c ixv.c
# Shared source
SRCS += ixgbe_common.c ixgbe_api.c ixgbe_phy.c ixgbe_mbx.c ixgbe_vf.c
SRCS += ixgbe_82599.c ixgbe_82598.c ixgbe_x540.c
CFLAGS+= -I${.CURDIR}/../../dev/ixgbe -DSMP -DIXGBE_FDIR
+.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