pkt_sched: sch_drr: Fix qlen in drr_drop()
authorJarek Poplawski <jarkao2@gmail.com>
Fri, 21 Nov 2008 12:37:27 +0000 (04:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2008 12:37:27 +0000 (04:37 -0800)
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_drr.c

index 8d523d9b636ca884648ac9ed5ddbcd64a419ac9b..37e6ab99bbeaa5e74c993cd5bdbd791d0e022413 100644 (file)
@@ -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;