tcp: turn on TCP hostcache for socket buffer sizes

The code has been there since introduction of the TCP hostcache
in 97d8d152c2 in 2003, but was turned off.

Reviewed by:		tuexen, cc
Differential Revision:	https://reviews.freebsd.org/D59452
This commit is contained in:
Gleb Smirnoff committed 2026-09-18 14:57:52 -07:00
1 parent f8f05fe48d
commit 587c6c1215
1 file changed
+2 -2
+2 -2
View File
@@ -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);
}