From 7fd50fe8b2d06dfc7f0f82ff4b021102f93f41cf Mon Sep 17 00:00:00 2001 From: bz Date: Sat, 26 Dec 2015 17:27:48 +0000 Subject: [PATCH] Add missing #ifdef INET after r292674 to allow NOIP and NOINET kernels to build. --- sys/dev/ixgbe/ix_txrx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/ixgbe/ix_txrx.c b/sys/dev/ixgbe/ix_txrx.c index c0467bea0754..00e5dc8cf0d4 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);