Fix #702 F-stack rack and BBR both causes PCB memory leak.

Because `net.inet.tcp.hpts.skip_swi=1` takes effect after
`mi_startup()` in `ff_freebsd_init()`.
This commit is contained in:
fengbojiang 2023-01-06 03:38:25 +08:00
parent 0763cdeb7f
commit a816e89636
1 changed files with 4 additions and 0 deletions

View File

@ -210,7 +210,11 @@ static void tcp_hpts_thread(void *ctx);
static void tcp_init_hptsi(void *st);
int32_t tcp_min_hptsi_time = DEFAULT_MIN_SLEEP;
#ifndef FSTACK
static int32_t tcp_hpts_callout_skip_swi = 0;
#else
static int32_t tcp_hpts_callout_skip_swi = 1;
#endif
SYSCTL_NODE(_net_inet_tcp, OID_AUTO, hpts, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
"TCP Hpts controls");