Fix NOINET/NOINET6 build during compilation of iflib.

Reported by:	kib
This commit is contained in:
Sean Bruno 2017-11-06 19:54:25 +00:00
parent 2f445a5314
commit abec47242a

View File

@ -2481,6 +2481,7 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct mbuf *m)
eh = mtod(m, struct ether_header *); eh = mtod(m, struct ether_header *);
eh_type = ntohs(eh->ether_type); eh_type = ntohs(eh->ether_type);
switch (eh_type) { switch (eh_type) {
#if defined(INET6)
case ETHERTYPE_IPV6: case ETHERTYPE_IPV6:
{ {
CURVNET_SET(lc->ifp->if_vnet); CURVNET_SET(lc->ifp->if_vnet);
@ -2491,6 +2492,8 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct mbuf *m)
CURVNET_RESTORE(); CURVNET_RESTORE();
break; break;
} }
#endif
#if defined (INET)
case ETHERTYPE_IP: case ETHERTYPE_IP:
{ {
CURVNET_SET(lc->ifp->if_vnet); CURVNET_SET(lc->ifp->if_vnet);
@ -2501,6 +2504,7 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct mbuf *m)
CURVNET_RESTORE(); CURVNET_RESTORE();
break; break;
} }
#endif
} }
return false; return false;