Date: Fri, 6 Sep 2019 18:33:39 +0000 (UTC) From: Conrad Meyer <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r351952 - head/sys/netinet Message-ID: <201909061833.x86IXd85031014@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909061833.x86IXd85031014>