Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103313
b: refs/heads/master
c: aee18a8
h: refs/heads/master
i:
  103311: a797481
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jul 6, 2008
1 parent dce613a commit 4efa54a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4207759939c208f24d7e09596753e67b6bc188f9
refs/heads/master: aee18a8cf28808b7302ef698d77fa73883e60f1b
7 changes: 0 additions & 7 deletions trunk/net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ struct htb_sched {

/* filters for qdisc itself */
struct tcf_proto *filter_list;
int filter_cnt;

int rate2quantum; /* quant = rate / rate2quantum */
psched_time_t now; /* cached dequeue time */
Expand Down Expand Up @@ -1484,7 +1483,6 @@ static struct tcf_proto **htb_find_tcf(struct Qdisc *sch, unsigned long arg)
static unsigned long htb_bind_filter(struct Qdisc *sch, unsigned long parent,
u32 classid)
{
struct htb_sched *q = qdisc_priv(sch);
struct htb_class *cl = htb_find(classid, sch);

/*if (cl && !cl->level) return 0;
Expand All @@ -1498,20 +1496,15 @@ static unsigned long htb_bind_filter(struct Qdisc *sch, unsigned long parent,
*/
if (cl)
cl->filter_cnt++;
else
q->filter_cnt++;
return (unsigned long)cl;
}

static void htb_unbind_filter(struct Qdisc *sch, unsigned long arg)
{
struct htb_sched *q = qdisc_priv(sch);
struct htb_class *cl = (struct htb_class *)arg;

if (cl)
cl->filter_cnt--;
else
q->filter_cnt--;
}

static void htb_walk(struct Qdisc *sch, struct qdisc_walker *arg)
Expand Down

0 comments on commit 4efa54a

Please sign in to comment.