summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-04-11 13:00:12 +0000
committerdlg <dlg@openbsd.org>2015-04-11 13:00:12 +0000
commitbaa74c00fe3190b0a83b19b0981d420ad8df80ea (patch)
tree0b309e326bc8a1f59e3abe761e9285c99f29162f /sys/net/pf_ioctl.c
parentchange back to spinlock_t/DEFINE_SPINLOCK (diff)
downloadwireguard-openbsd-baa74c00fe3190b0a83b19b0981d420ad8df80ea.tar.xz
wireguard-openbsd-baa74c00fe3190b0a83b19b0981d420ad8df80ea.zip
the hfsc pools are only used in hfsc.c, so move the init of them
there instead of pf_ioctl.c. ok henning@
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r--sys/net/pf_ioctl.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index fbed2e38b0c..857ad2152c4 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.284 2015/03/14 03:38:51 jsg Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.285 2015/04/11 13:00:12 dlg Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -155,12 +155,7 @@ pfattach(int num)
"pfruleitem", NULL);
pool_init(&pf_queue_pl, sizeof(struct pf_queuespec), 0, 0, 0,
"pfqueue", 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);
+ hfsc_initialize();
pfr_initialize();
pfi_initialize();
pf_osfp_initialize();