From 373013b05f5cfafb9b5e27d6284a4f7430e0edd5 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Fri, 6 Sep 2019 18:33:39 +0000 Subject: [PATCH] Fix build after r351934 tcp_queue_pkts() is only used if TCPHPTS is defined (and it is not by default). Reported by: gcc --- sys/netinet/tcp_lro.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet/tcp_lro.c b/sys/netinet/tcp_lro.c index 33bad8dd6049..abdc4696d0bb 100644 --- a/sys/netinet/tcp_lro.c +++ b/sys/netinet/tcp_lro.c @@ -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 *le) } 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);