Skip to content

Commit

Permalink
pkt_sched: sch_drr: Fix qlen in drr_drop()
Browse files Browse the repository at this point in the history
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Nov 21, 2008
1 parent 9d2f472 commit 98aa9c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/sched/sch_drr.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ static unsigned int drr_drop(struct Qdisc *sch)
if (cl->qdisc->ops->drop) {
len = cl->qdisc->ops->drop(cl->qdisc);
if (len > 0) {
sch->q.qlen--;
if (cl->qdisc->q.qlen == 0)
list_del(&cl->alist);
return len;
Expand Down

0 comments on commit 98aa9c8

Please sign in to comment.