summaryrefslogtreecommitdiff
path: root/net/sched
diff options
context:
space:
mode:
authorJarek Poplawski <jarkao2@gmail.com>2008-11-21 15:37:27 +0300
committerDavid S. Miller <davem@davemloft.net>2008-11-21 15:37:27 +0300
commit98aa9c80f1fee01e98dfdc484ab7316af45f8f17 (patch)
tree4b5597a5fe9b9d6267f774a6da0be519e6097129 /net/sched
parent9d2f4720971c00852a3fc8278a76f1a5e9add5c7 (diff)
downloadlinux-98aa9c80f1fee01e98dfdc484ab7316af45f8f17.tar.xz
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')
-rw-r--r--net/sched/sch_drr.c1
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)
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;