summaryrefslogtreecommitdiff
path: root/sys/altq/altq_priq.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-03-04 22:40:17 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-03-04 22:40:17 +0000
commitb751ff7496fc73fe22ed7d0c2371837c4c2aed2c (patch)
treebd1ae2cb58e37d25f97c0e7f581ad0b9035bf683 /sys/altq/altq_priq.c
parent15e7a983128283f9a61840e1ed37255bb4ada6fe (diff)
With the exception of two other small uncommited diffs this moves
the remainder of the network stack from splimp to splnet. ok miod@
Diffstat (limited to 'sys/altq/altq_priq.c')
-rw-r--r--sys/altq/altq_priq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/altq/altq_priq.c b/sys/altq/altq_priq.c
index 3f04e81a35c..e6d6a83c0ba 100644
--- a/sys/altq/altq_priq.c
+++ b/sys/altq/altq_priq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_priq.c,v 1.18 2005/10/17 08:43:35 henning Exp $ */
+/* $OpenBSD: altq_priq.c,v 1.19 2006/03/04 22:40:15 brad Exp $ */
/* $KAME: altq_priq.c,v 1.1 2000/10/18 09:15:23 kjc Exp $ */
/*
* Copyright (C) 2000
@@ -75,7 +75,7 @@ priq_pfattach(struct pf_altq *a)
if ((ifp = ifunit(a->ifname)) == NULL || a->altq_disc == NULL)
return (EINVAL);
- s = splimp();
+ s = splnet();
error = altq_attach(&ifp->if_snd, ALTQT_PRIQ, a->altq_disc,
priq_enqueue, priq_dequeue, priq_request, NULL, NULL);
splx(s);
@@ -253,7 +253,7 @@ priq_class_create(struct priq_if *pif, int pri, int qlimit, int flags, int qid)
if ((cl = pif->pif_classes[pri]) != NULL) {
/* modify the class instead of creating a new one */
- s = splimp();
+ s = splnet();
if (!qempty(cl->cl_q))
priq_purgeq(cl);
splx(s);
@@ -354,7 +354,7 @@ priq_class_destroy(struct priq_class *cl)
struct priq_if *pif;
int s, pri;
- s = splimp();
+ s = splnet();
if (!qempty(cl->cl_q))
priq_purgeq(cl);