Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2018 18:57:42 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334217 - head/sys/dev/cxgbe
Message-ID:  <201805251857.w4PIvgwH073170@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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