cxgbe(4): Suppress a warning about code that is used only with options

RATELIMIT.

Reported by:	mmacy@
This commit is contained in:
np 2018-05-25 18:57:41 +00:00
parent 00f982a1ad
commit fbb37ff1cc

View File

@ -2202,6 +2202,7 @@ needs_tcp_csum(struct mbuf *m)
return (m->m_pkthdr.csum_flags & (CSUM_TCP | CSUM_TCP_IPV6 | CSUM_TSO));
}
#ifdef RATELIMIT
static inline int
needs_udp_csum(struct mbuf *m)
{
@ -2209,6 +2210,7 @@ needs_udp_csum(struct mbuf *m)
M_ASSERTPKTHDR(m);
return (m->m_pkthdr.csum_flags & (CSUM_UDP | CSUM_UDP_IPV6));
}
#endif
static inline int
needs_vlan_insertion(struct mbuf *m)