svn commit: r351952 - head/sys/netinet

Conrad Meyer cem at FreeBSD.org
Fri Sep 6 18:33:40 UTC 2019


Author: cem
Date: Fri Sep  6 18:33:39 2019
New Revision: 351952
URL: https://svnweb.freebsd.org/changeset/base/351952

Log:
  Fix build after r351934
  
  tcp_queue_pkts() is only used if TCPHPTS is defined (and it is not by
  default).
  
  Reported by:	gcc

Modified:
  head/sys/netinet/tcp_lro.c

Modified: head/sys/netinet/tcp_lro.c
==============================================================================
--- head/sys/netinet/tcp_lro.c	Fri Sep  6 18:29:48 2019	(r351951)
+++ head/sys/netinet/tcp_lro.c	Fri Sep  6 18:33:39 2019	(r351952)
@@ -845,6 +845,7 @@ again:
 	}
 }
 
+#ifdef TCPHPTS
 static void
 tcp_queue_pkts(struct tcpcb *tp, struct lro_entry *le)
 {
@@ -860,6 +861,7 @@ tcp_queue_pkts(struct tcpcb *tp, struct lro_entry *le)
 	le->m_head = NULL;
 	le->m_last_mbuf = NULL;
 }
+#endif
 
 void
 tcp_lro_flush(struct lro_ctrl *lc, struct lro_entry *le)
@@ -959,7 +961,7 @@ tcp_lro_flush(struct lro_ctrl *lc, struct lro_entry *l
 	}
 	if (can_queue == 0) {
 skip_lookup:
-#endif
+#endif /* TCPHPTS */
 		/* Old fashioned lro method */
 		if (le->m_head != le->m_last_mbuf)  {
 			counter_u64_add(tcp_inp_lro_compressed, 1);


More information about the svn-src-head mailing list