diff options
author | Jarek Poplawski <jarkao2@gmail.com> | 2008-11-21 04:37:27 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 04:37:27 -0800 |
commit | 98aa9c80f1fee01e98dfdc484ab7316af45f8f17 (patch) | |
tree | 4b5597a5fe9b9d6267f774a6da0be519e6097129 | |
parent | 9d2f4720971c00852a3fc8278a76f1a5e9add5c7 (diff) | |
download | op-kernel-dev-98aa9c80f1fee01e98dfdc484ab7316af45f8f17.zip op-kernel-dev-98aa9c80f1fee01e98dfdc484ab7316af45f8f17.tar.gz |
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>
-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 8d523d9..37e6ab9 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; |