summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2015-12-26 17:27:48 +0000
committerbz <bz@FreeBSD.org>2015-12-26 17:27:48 +0000
commit7fd50fe8b2d06dfc7f0f82ff4b021102f93f41cf (patch)
treed42f11a1e7b5aca90f938ff3509af8444ab023b5 /sys/dev/ixgbe
parentaf0e70ec1737223f09e6937ea403f9e94532e33c (diff)
downloadFreeBSD-src-7fd50fe8b2d06dfc7f0f82ff4b021102f93f41cf.zip
FreeBSD-src-7fd50fe8b2d06dfc7f0f82ff4b021102f93f41cf.tar.gz
Add missing #ifdef INET after r292674 to allow NOIP and NOINET kernels
to build.
Diffstat (limited to 'sys/dev/ixgbe')
-rw-r--r--sys/dev/ixgbe/ix_txrx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ixgbe/ix_txrx.c b/sys/dev/ixgbe/ix_txrx.c
index c0467be..00e5dc8 100644
--- a/sys/dev/ixgbe/ix_txrx.c
+++ b/sys/dev/ixgbe/ix_txrx.c
@@ -797,6 +797,7 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, struct mbuf *mp,
l3d = mtod(mp, caddr_t) + ehdrlen;
switch (etype) {
+#ifdef INET
case ETHERTYPE_IP:
ip = (struct ip *)(l3d);
ip_hlen = ip->ip_hl << 2;
@@ -808,6 +809,7 @@ ixgbe_tx_ctx_setup(struct tx_ring *txr, struct mbuf *mp,
*olinfo_status |= IXGBE_TXD_POPTS_IXSM << 8;
}
break;
+#endif
#ifdef INET6
case ETHERTYPE_IPV6:
ip6 = (struct ip6_hdr *)(l3d);
OpenPOWER on IntegriCloud