hpts: make stacks responsible for tcp_hpts_init()

Those stacks that use HPTS should care about init, not generic code.

Reviewed by:		imp, tuexen, rrs
Differential Revision:	https://reviews.freebsd.org/D42856

(cherry picked from commit 2b3a77467dd3d74a7170f279fb25f9736b46ef8a)
This commit is contained in:
Gleb Smirnoff 2023-12-04 10:19:46 -08:00
parent fee8f540da
commit 76deefc548
3 changed files with 4 additions and 3 deletions

View file

@ -9926,6 +9926,8 @@ bbr_init(struct tcpcb *tp, void **ptr)
struct tcp_bbr *bbr = NULL;
uint32_t cts;
tcp_hpts_init(tp);
*ptr = uma_zalloc(bbr_pcb_zone, (M_NOWAIT | M_ZERO));
if (*ptr == NULL) {
/*

View file

@ -14973,6 +14973,8 @@ rack_init(struct tcpcb *tp, void **ptr)
uint32_t iwin, snt, us_cts;
int err, no_query;
tcp_hpts_init(tp);
/*
* First are we the initial or are we a switched stack?
* If we are initing via tcp_newtcppcb the ptr passed

View file

@ -2315,9 +2315,6 @@ tcp_newtcpcb(struct inpcb *inp)
* which may match an IPv4-mapped IPv6 address.
*/
inp->inp_ip_ttl = V_ip_defttl;
#ifdef TCPHPTS
tcp_hpts_init(tp);
#endif
#ifdef TCPPCAP
/*
* Init the TCP PCAP queues.