summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-06-02 00:39:22 +0000
committerdlg <dlg@openbsd.org>2016-06-02 00:39:22 +0000
commitf03d5ca8e8d7bd538305adf937932b47799f81c8 (patch)
tree9f09d4a55c6569a494d24b89772a84cec106774a
parentalways clean up the heap in art_table_delete, even for the last at_refcnt (diff)
downloadwireguard-openbsd-f03d5ca8e8d7bd538305adf937932b47799f81c8.tar.xz
wireguard-openbsd-f03d5ca8e8d7bd538305adf937932b47799f81c8.zip
pool_setipl at IPL_SOFTNET for all the art structures.
-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);
}
/*