diff options
author | Kenjiro Cho <kjc@cvs.openbsd.org> | 2004-02-19 07:44:01 +0000 |
---|---|---|
committer | Kenjiro Cho <kjc@cvs.openbsd.org> | 2004-02-19 07:44:01 +0000 |
commit | a0df923b9e25f0e74e27401cb579bfd06063801a (patch) | |
tree | efb6d5241c90cbcabf90a4d98fd66c81a67940b9 /sbin | |
parent | 3516418562bc6585289736941f32c713e97240ca (diff) |
now that qids are managed entirely in the kernel, the qid related code
is no longer needed in pfctl.
ok, henning@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_altq.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c index 5b892f823de..9a0a8c97e0f 100644 --- a/sbin/pfctl/pfctl_altq.c +++ b/sbin/pfctl/pfctl_altq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_altq.c,v 1.81 2004/02/10 22:26:56 dhartmei Exp $ */ +/* $OpenBSD: pfctl_altq.c,v 1.82 2004/02/19 07:44:00 kjc Exp $ */ /* * Copyright (c) 2002 @@ -82,8 +82,6 @@ u_int32_t eval_bwspec(struct node_queue_bw *, u_int32_t); void print_hfsc_sc(const char *, u_int, u_int, u_int, const struct node_hfsc_sc *); -static u_int32_t max_qid = 0; - void pfaltq_store(struct pf_altq *a) { @@ -412,8 +410,6 @@ eval_pfqueue_cbq(struct pfctl *pf, struct pf_altq *pa) if (pa->parent[0] == 0) opts->flags |= (CBQCLF_ROOTCLASS | CBQCLF_WRR); - if (pa->qid == 0) - pa->qid = ++max_qid; cbq_compute_idletime(pf, pa); return (0); @@ -598,9 +594,6 @@ eval_pfqueue_priq(struct pfctl *pf, struct pf_altq *pa) } } - if (pa->qid == 0) - pa->qid = ++max_qid; - return (0); } @@ -668,8 +661,6 @@ eval_pfqueue_hfsc(struct pfctl *pf, struct pf_altq *pa) opts = &pa->pq_u.hfsc_opts; - if (pa->qid == 0) - pa->qid = ++max_qid; if (pa->parent[0] == 0) { /* root queue */ opts->lssc_m1 = pa->ifbandwidth; |