aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ixl/ixl_txrx.c
diff options
context:
space:
mode:
authorJack F Vogel <jfv@FreeBSD.org>2014-08-29 00:33:31 +0000
committerJack F Vogel <jfv@FreeBSD.org>2014-08-29 00:33:31 +0000
commit2f4959ab6aa20c8fcbab0659aa5ddf3c1ad65d61 (patch)
treeca26d625f2d2c6e754e08be0d6a5bafc9391cdd0 /sys/dev/ixl/ixl_txrx.c
parent3e1dba58edcd39e234d75f42a398f76bc2734c6c (diff)
downloadsrc-2f4959ab6aa20c8fcbab0659aa5ddf3c1ad65d61.tar.gz
src-2f4959ab6aa20c8fcbab0659aa5ddf3c1ad65d61.zip
Fix the NOINET and NOINET6 builds.
MFC after:3 days
Notes
Notes: svn path=/head/; revision=270775
Diffstat (limited to 'sys/dev/ixl/ixl_txrx.c')
-rwxr-xr-xsys/dev/ixl/ixl_txrx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ixl/ixl_txrx.c b/sys/dev/ixl/ixl_txrx.c
index 0e21421dcc51..c1cf8efdad50 100755
--- a/sys/dev/ixl/ixl_txrx.c
+++ b/sys/dev/ixl/ixl_txrx.c
@@ -596,6 +596,7 @@ ixl_tx_setup_offload(struct ixl_queue *que,
switch (etype) {
case ETHERTYPE_IP:
+#ifdef INET
ip = (struct ip *)(mp->m_data + elen);
ip_hlen = ip->ip_hl << 2;
ipproto = ip->ip_p;
@@ -605,14 +606,17 @@ ixl_tx_setup_offload(struct ixl_queue *que,
*cmd |= I40E_TX_DESC_CMD_IIPT_IPV4_CSUM;
else
*cmd |= I40E_TX_DESC_CMD_IIPT_IPV4;
+#endif
break;
case ETHERTYPE_IPV6:
+#ifdef INET6
ip6 = (struct ip6_hdr *)(mp->m_data + elen);
ip_hlen = sizeof(struct ip6_hdr);
ipproto = ip6->ip6_nxt;
th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
*cmd |= I40E_TX_DESC_CMD_IIPT_IPV6;
/* Falls thru */
+#endif
default:
break;
}