Author: np
Date: Fri May 25 18:57:41 2018
New Revision: 334217
URL: https://svnweb.freebsd.org/changeset/base/334217

Log:
  cxgbe(4): Suppress a warning about code that is used only with options
  RATELIMIT.
  
  Reported by:  mmacy@

Modified:
  head/sys/dev/cxgbe/t4_sge.c

Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c Fri May 25 18:54:40 2018        (r334216)
+++ head/sys/dev/cxgbe/t4_sge.c Fri May 25 18:57:41 2018        (r334217)
@@ -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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to