diff options
author | jtl <jtl@FreeBSD.org> | 2015-12-22 13:41:50 +0000 |
---|---|---|
committer | jtl <jtl@FreeBSD.org> | 2015-12-22 13:41:50 +0000 |
commit | 41756a161ecb669a9ffeda0858a47ae3f177386c (patch) | |
tree | 05e4d656a2fb7821e9e96d5090927f9ea759d958 /sys/netinet/tcp_subr.c | |
parent | d7802dffd4ee6ac735089a2386db94f2f89a5ebb (diff) | |
download | FreeBSD-src-41756a161ecb669a9ffeda0858a47ae3f177386c.zip FreeBSD-src-41756a161ecb669a9ffeda0858a47ae3f177386c.tar.gz |
Fix a panic when launching VNETs after the commit of r292309.
Differential Revision: https://reviews.freebsd.org/D4645
Reviewed by: rrs
Reported by: kp
Tested by: kp
Sponsored by: Juniper Networks
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 00869a6..6878165 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -593,10 +593,6 @@ tcp_init(void) if (hhook_head_register(HHOOK_TYPE_TCP, HHOOK_TCP_EST_OUT, &V_tcp_hhh[HHOOK_TCP_EST_OUT], HHOOK_NOWAIT|HHOOK_HEADISINVNET) != 0) printf("%s: WARNING: unable to register helper hook\n", __func__); - /* Setup the tcp function block list */ - TAILQ_INIT(&t_functions); - rw_init_flags(&tcp_function_lock, "tcp_func_lock" , 0); - register_tcp_functions(&tcp_def_funcblk, M_WAITOK); hashsize = TCBHASHSIZE; TUNABLE_INT_FETCH(tcbhash_tuneable, &hashsize); if (hashsize == 0) { @@ -675,6 +671,10 @@ tcp_init(void) tcp_rexmit_slop = TCPTV_CPU_VAR; tcp_finwait2_timeout = TCPTV_FINWAIT2_TIMEOUT; tcp_tcbhashsize = hashsize; + /* Setup the tcp function block list */ + TAILQ_INIT(&t_functions); + rw_init_flags(&tcp_function_lock, "tcp_func_lock" , 0); + register_tcp_functions(&tcp_def_funcblk, M_WAITOK); if (tcp_soreceive_stream) { #ifdef INET |