Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2017 19:54:26 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325494 - head/sys/net
Message-ID:  <201711061954.vA6JsQOs069870@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Mon Nov  6 19:54:25 2017
New Revision: 325494
URL: https://svnweb.freebsd.org/changeset/base/325494

Log:
  Fix NOINET/NOINET6 build during compilation of iflib.
  
  Reported by:	kib

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c	Mon Nov  6 19:33:50 2017	(r325493)
+++ head/sys/net/iflib.c	Mon Nov  6 19:54:25 2017	(r325494)
@@ -2481,6 +2481,7 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct m
 	eh = mtod(m, struct ether_header *);
 	eh_type = ntohs(eh->ether_type);
 	switch (eh_type) {
+#if defined(INET6)
 		case ETHERTYPE_IPV6:
 		{
 			CURVNET_SET(lc->ifp->if_vnet);
@@ -2491,6 +2492,8 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct m
 			CURVNET_RESTORE();
 			break;
 		}
+#endif
+#if defined (INET)
 		case ETHERTYPE_IP:
 		{
 			CURVNET_SET(lc->ifp->if_vnet);
@@ -2501,6 +2504,7 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct m
 			CURVNET_RESTORE();
 			break;
 		}
+#endif
 	}
 
 	return false;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711061954.vA6JsQOs069870>