aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2021-02-17 17:49:42 +0000
committerRandall Stewart <rrs@FreeBSD.org>2021-02-17 17:49:42 +0000
commitab4fad4be14462e347ed24ee3663a18eacfb138e (patch)
tree0a8b67c6df6cb485cbeb1f39dcd58339014aa130 /sys
parent962a3814d4c838d21a67a4b704c64be843cb2b51 (diff)
downloadsrc-ab4fad4be14462e347ed24ee3663a18eacfb138e.tar.gz
src-ab4fad4be14462e347ed24ee3663a18eacfb138e.zip
Add ifdef TCPHPTS around build_ack_entry and do_bpf_and_csum to avoid
warnings when HPTS is not included Thanks to Gary Jennejohn for pointing this out.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_lro.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_lro.c b/sys/netinet/tcp_lro.c
index aea55d7ae33f..199b7f9a79a0 100644
--- a/sys/netinet/tcp_lro.c
+++ b/sys/netinet/tcp_lro.c
@@ -1293,6 +1293,7 @@ lro_set_mtime(struct timeval *tv, struct timespec *ts)
tv->tv_usec = ts->tv_nsec / 1000;
}
+#ifdef TCPHPTS
static void
build_ack_entry(struct tcp_ackent *ae, struct tcphdr *th, struct mbuf *m, uint16_t hdr_len, uint16_t iptos)
{
@@ -1487,6 +1488,7 @@ do_bpf_and_csum(struct inpcb *inp, struct lro_ctrl *lc, struct lro_entry *le,
} /* end switch */
return (m);
}
+#endif
static int
tcp_lro_rx2(struct lro_ctrl *lc, struct mbuf *m, uint32_t csum, int use_hash)