diff options
author | 2014-01-03 12:48:58 +0000 | |
---|---|---|
committer | 2014-01-03 12:48:58 +0000 | |
commit | ccdbca57e06e839efdf8a2a0a9a2cbc0fbe3e060 (patch) | |
tree | 7216fd62f4b563049a181c1a97c12acc144b2b4b /sys/net/pf_ioctl.c | |
parent | Make queues disappear correctly on interfaces being destroyed. (diff) | |
download | wireguard-openbsd-ccdbca57e06e839efdf8a2a0a9a2cbc0fbe3e060.tar.xz wireguard-openbsd-ccdbca57e06e839efdf8a2a0a9a2cbc0fbe3e060.zip |
Switch frequently allocated structs from malloc(M_DEVBUF) to separate pools.
ok henning, "looks fine" mikeb, input from guenther.
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r-- | sys/net/pf_ioctl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c index af7dae5635c..6db18b611c6 100644 --- a/sys/net/pf_ioctl.c +++ b/sys/net/pf_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_ioctl.c,v 1.266 2014/01/03 12:43:09 pelikan Exp $ */ +/* $OpenBSD: pf_ioctl.c,v 1.267 2014/01/03 12:48:58 pelikan Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -179,6 +179,12 @@ pfattach(int num) &pool_allocator_nointr); pool_init(&pf_queue_pl, sizeof(struct pf_queuespec), 0, 0, 0, "pfqueuepl", NULL); + pool_init(&hfsc_class_pl, sizeof(struct hfsc_class), 0, 0, PR_WAITOK, + "hfscclass", NULL); + pool_init(&hfsc_classq_pl, sizeof(struct hfsc_classq), 0, 0, PR_WAITOK, + "hfscclassq", NULL); + pool_init(&hfsc_internal_sc_pl, sizeof(struct hfsc_internal_sc), 0, 0, + PR_WAITOK, "hfscintsc", NULL); pfr_initialize(); pfi_initialize(); pf_osfp_initialize(); |