Author: jfv
Date: Fri Aug 29 00:33:31 2014
New Revision: 270775
URL: http://svnweb.freebsd.org/changeset/base/270775

Log:
  Fix the NOINET and NOINET6 builds.
  
  MFC after:3 days

Modified:
  head/sys/dev/ixl/ixl_txrx.c

Modified: head/sys/dev/ixl/ixl_txrx.c
==============================================================================
--- head/sys/dev/ixl/ixl_txrx.c Thu Aug 28 23:32:56 2014        (r270774)
+++ head/sys/dev/ixl/ixl_txrx.c Fri Aug 29 00:33:31 2014        (r270775)
@@ -596,6 +596,7 @@ ixl_tx_setup_offload(struct ixl_queue *q
 
        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 *q
                                *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;
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to