diff options
author | Jarek Poplawski <jarkao2@gmail.com> | 2008-11-21 07:37:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 07:37:27 -0500 |
commit | 98aa9c80f1fee01e98dfdc484ab7316af45f8f17 (patch) | |
tree | 4b5597a5fe9b9d6267f774a6da0be519e6097129 /net/sched/sch_drr.c | |
parent | 9d2f4720971c00852a3fc8278a76f1a5e9add5c7 (diff) |
pkt_sched: sch_drr: Fix qlen in drr_drop()
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_drr.c')
-rw-r--r-- | net/sched/sch_drr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/sch_drr.c b/net/sched/sch_drr.c index 8d523d9b636c..37e6ab99bbea 100644 --- a/net/sched/sch_drr.c +++ b/net/sched/sch_drr.c | |||
@@ -406,6 +406,7 @@ static unsigned int drr_drop(struct Qdisc *sch) | |||
406 | if (cl->qdisc->ops->drop) { | 406 | if (cl->qdisc->ops->drop) { |
407 | len = cl->qdisc->ops->drop(cl->qdisc); | 407 | len = cl->qdisc->ops->drop(cl->qdisc); |
408 | if (len > 0) { | 408 | if (len > 0) { |
409 | sch->q.qlen--; | ||
409 | if (cl->qdisc->q.qlen == 0) | 410 | if (cl->qdisc->q.qlen == 0) |
410 | list_del(&cl->alist); | 411 | list_del(&cl->alist); |
411 | return len; | 412 | return len; |