summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-09-06 00:04:16 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-09-06 00:04:16 +0000
commit1bfbb1341f4733af2fc04e15e80077f779744a4b (patch)
tree7012cfaeb45f30e6889051122fe05c59026ac1e7 /sys/netinet/tcp_subr.c
parent6a67f8a92e71626adf0b0663f80235a0024a19e3 (diff)
pool_setipl for various netinet and netinet6 bits
thank you to everyone who helped reviewed these diffs ok mpi@
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 11ce7055483..50936a0f8fa 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_subr.c,v 1.153 2016/09/03 14:34:13 bluhm Exp $ */
+/* $OpenBSD: tcp_subr.c,v 1.154 2016/09/06 00:04:15 dlg Exp $ */
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
/*
@@ -142,11 +142,14 @@ tcp_init(void)
{
tcp_iss = 1; /* wrong */
pool_init(&tcpcb_pool, sizeof(struct tcpcb), 0, 0, 0, "tcpcb", NULL);
+ pool_setipl(&tcpcb_pool, IPL_SOFTNET);
pool_init(&tcpqe_pool, sizeof(struct tcpqent), 0, 0, 0, "tcpqe", NULL);
+ pool_setipl(&tcpcb_pool, IPL_SOFTNET);
pool_sethardlimit(&tcpqe_pool, tcp_reass_limit, NULL, 0);
#ifdef TCP_SACK
pool_init(&sackhl_pool, sizeof(struct sackhole), 0, 0, 0, "sackhl",
NULL);
+ pool_setipl(&sackhl_pool, IPL_SOFTNET);
pool_sethardlimit(&sackhl_pool, tcp_sackhole_limit, NULL, 0);
#endif /* TCP_SACK */
in_pcbinit(&tcbtable, TCB_INITIAL_HASH_SIZE);