Skip to content

Commit a816e89

Browse files
committed
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()`.
1 parent 0763cde commit a816e89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

freebsd/netinet/tcp_hpts.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ static void tcp_hpts_thread(void *ctx);
210210
static void tcp_init_hptsi(void *st);
211211

212212
int32_t tcp_min_hptsi_time = DEFAULT_MIN_SLEEP;
213+
#ifndef FSTACK
213214
static int32_t tcp_hpts_callout_skip_swi = 0;
215+
#else
216+
static int32_t tcp_hpts_callout_skip_swi = 1;
217+
#endif
214218

215219
SYSCTL_NODE(_net_inet_tcp, OID_AUTO, hpts, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
216220
"TCP Hpts controls");

0 commit comments

Comments
 (0)