mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
This commit is contained in:
parent
8e907391b7
commit
2b3a77467d
3 changed files with 4 additions and 3 deletions
|
|
@ -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) {
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -2313,9 +2313,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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue