summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-08-30 23:29:40 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-08-30 23:29:40 +0000
commit1ebceefa60a3ec0b67e31b8accdb15ab61aa17a4 (patch)
tree3983a5ff78398204ec1010f78004e74dd8a08f6f
parent54a1a10c8035ff9ec7b252904e0675a1ac7f2d15 (diff)
pool_setipl
ok claudio@ mpi@
-rw-r--r--sys/net/radix.c3
-rw-r--r--sys/net/route.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c
index 71d7c6d7f9e..bc650f02082 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radix.c,v 1.52 2015/11/06 18:07:57 mpi Exp $ */
+/* $OpenBSD: radix.c,v 1.53 2016/08/30 23:29:39 dlg Exp $ */
/* $NetBSD: radix.c,v 1.20 2003/08/07 16:32:56 agc Exp $ */
/*
@@ -1225,6 +1225,7 @@ rn_init(unsigned int keylen)
if (max_keylen == 0) {
pool_init(&rtmask_pool, sizeof(struct radix_mask), 0, 0, 0,
"rtmask", NULL);
+ pool_setipl(&rtmask_pool, IPL_SOFTNET);
}
if (keylen <= max_keylen)
diff --git a/sys/net/route.c b/sys/net/route.c
index bfa5925e1da..344f5af66e8 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.317 2016/08/22 16:53:59 mpi Exp $ */
+/* $OpenBSD: route.c,v 1.318 2016/08/30 23:29:39 dlg Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -189,6 +189,7 @@ route_init(void)
{
pool_init(&rtentry_pool, sizeof(struct rtentry), 0, 0, 0, "rtentry",
NULL);
+ pool_setipl(&rtentry_pool, IPL_SOFTNET);
while (rt_hashjitter == 0)
rt_hashjitter = arc4random();
@@ -1514,6 +1515,7 @@ rt_timer_init(void)
pool_init(&rttimer_pool, sizeof(struct rttimer), 0, 0, 0, "rttmr",
NULL);
+ pool_setipl(&rttimer_pool, IPL_SOFTNET);
LIST_INIT(&rttimer_queue_head);
timeout_set(&rt_timer_timeout, rt_timer_timer, &rt_timer_timeout);