The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=587c6c1215046c6204abee9829ce9df0d3814a61
commit 587c6c1215046c6204abee9829ce9df0d3814a61 Author: Gleb Smirnoff <[email protected]> AuthorDate: 2026-09-18 21:57:52 +0000 Commit: Gleb Smirnoff <[email protected]> CommitDate: 2026-09-18 21:57:52 +0000 tcp: turn on TCP hostcache for socket buffer sizes The code has been there since introduction of the TCP hostcache in 97d8d152c28bb in 2003, but was turned off. Reviewed by: tuexen, cc Differential Revision: https://reviews.freebsd.org/D59452 --- sys/netinet/tcp_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index f29a5c5110f6..6d3f6a88a1c9 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -2515,8 +2515,8 @@ tcp_discardcb(struct tcpcb *tp) metrics.hc_rtt = tp->t_srtt; metrics.hc_rttvar = tp->t_rttvar; metrics.hc_cwnd = tp->snd_cwnd; - metrics.hc_sendpipe = 0; - metrics.hc_recvpipe = 0; + metrics.hc_sendpipe = so->so_snd.sb_hiwat; + metrics.hc_recvpipe = so->so_rcv.sb_hiwat; tcp_hc_update(&inp->inp_inc, &metrics); }
