Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195178
b: refs/heads/master
c: a2f7922
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed May 18, 2010
1 parent 2a2c105 commit 1f5e17d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: e1bc7eedbafe0415cdfd82e17e6f65bb3369239d
refs/heads/master: a2f79227138c71e08627af5f8961197364edbc98
6 changes: 5 additions & 1 deletion trunk/net/sched/sch_hfsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ static struct hfsc_class *
hfsc_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr)
{
struct hfsc_sched *q = qdisc_priv(sch);
struct hfsc_class *cl;
struct hfsc_class *head, *cl;
struct tcf_result res;
struct tcf_proto *tcf;
int result;
Expand All @@ -1166,6 +1166,7 @@ hfsc_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr)
return cl;

*qerr = NET_XMIT_SUCCESS | __NET_XMIT_BYPASS;
head = &q->root;
tcf = q->root.filter_list;
while (tcf && (result = tc_classify(skb, tcf, &res)) >= 0) {
#ifdef CONFIG_NET_CLS_ACT
Expand All @@ -1180,13 +1181,16 @@ hfsc_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr)
if ((cl = (struct hfsc_class *)res.class) == NULL) {
if ((cl = hfsc_find_class(res.classid, sch)) == NULL)
break; /* filter selected invalid classid */
if (cl->level >= head->level)
break; /* filter may only point downwards */
}

if (cl->level == 0)
return cl; /* hit leaf class */

/* apply inner filter chain */
tcf = cl->filter_list;
head = cl;
}

/* classification failed, try default class */
Expand Down

0 comments on commit 1f5e17d

Please sign in to comment.