Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122120
b: refs/heads/master
c: 3f0947c
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Nov 24, 2008
1 parent 923ac48 commit 5fbee32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 4b40eed73e3787d60160beed1352ceadd24f6be1
refs/heads/master: 3f0947c3ffaed33c1c38b79e4b17f75ba072d3e9
8 changes: 5 additions & 3 deletions trunk/net/sched/sch_drr.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,13 @@ static struct sk_buff *drr_dequeue(struct Qdisc *sch)
struct sk_buff *skb;
unsigned int len;

while (!list_empty(&q->active)) {
if (list_empty(&q->active))
goto out;
while (1) {
cl = list_first_entry(&q->active, struct drr_class, alist);
skb = cl->qdisc->ops->peek(cl->qdisc);
if (skb == NULL)
goto skip;
goto out;

len = qdisc_pkt_len(skb);
if (len <= cl->deficit) {
Expand All @@ -390,9 +392,9 @@ static struct sk_buff *drr_dequeue(struct Qdisc *sch)
}

cl->deficit += cl->quantum;
skip:
list_move_tail(&cl->alist, &q->active);
}
out:
return NULL;
}

Expand Down

0 comments on commit 5fbee32

Please sign in to comment.