summaryrefslogtreecommitdiff
path: root/sys/net/art.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-06-02 00:39:23 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-06-02 00:39:23 +0000
commite74b6d9c8e086752dff0c4daa46506fa67c9d9bf (patch)
tree507ce63d0f6767158902105e0576ddedfbf6b718 /sys/net/art.c
parent3a0546e9dabef7fb59c2847df1ff1fc064e7a81d (diff)
pool_setipl at IPL_SOFTNET for all the art structures.
Diffstat (limited to 'sys/net/art.c')
-rw-r--r--sys/net/art.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/net/art.c b/sys/net/art.c
index 227aaa472c3..4b9a5facb5c 100644
--- a/sys/net/art.c
+++ b/sys/net/art.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: art.c,v 1.16 2016/06/02 00:34:13 dlg Exp $ */
+/* $OpenBSD: art.c,v 1.17 2016/06/02 00:39:22 dlg Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
@@ -89,11 +89,18 @@ void
art_init(void)
{
pool_init(&an_pool, sizeof(struct art_node), 0, 0, 0, "art_node", NULL);
+ pool_setipl(&an_pool, IPL_SOFTNET);
+
pool_init(&at_pool, sizeof(struct art_table), 0, 0, 0, "art_table",
NULL);
+ pool_setipl(&at_pool, IPL_SOFTNET);
+
pool_init(&at_heap_4_pool, AT_HEAPSIZE(4), 0, 0, 0, "art_heap4", NULL);
+ pool_setipl(&at_heap_4_pool, IPL_SOFTNET);
+
pool_init(&at_heap_8_pool, AT_HEAPSIZE(8), 0, 0, 0, "art_heap8",
&pool_allocator_single);
+ pool_setipl(&at_heap_8_pool, IPL_SOFTNET);
}
/*