From 0e437433af83ef391f2c0ed09847ea9b26f71f01 Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 30 Aug 2016 23:29:39 +0000 Subject: [PATCH] pool_setipl ok claudio@ mpi@ --- sys/net/radix.c | 3 ++- sys/net/route.c | 4 +++- 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); -- 2.20.1