diff options
author | Jarek Poplawski <jarkao2@gmail.com> | 2008-11-21 13:37:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 13:37:27 +0100 |
commit | 98aa9c80f1fee01e98dfdc484ab7316af45f8f17 (patch) | |
tree | 4b5597a5fe9b9d6267f774a6da0be519e6097129 /net/sched/sch_drr.c | |
parent | ixgbe: convert directly reference of netdev->priv (diff) | |
download | linux-98aa9c80f1fee01e98dfdc484ab7316af45f8f17.tar.xz linux-98aa9c80f1fee01e98dfdc484ab7316af45f8f17.zip |
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) 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; |