提交 98aa9c80 编写于 作者: J Jarek Poplawski 提交者: David S. Miller

pkt_sched: sch_drr: Fix qlen in drr_drop()

Signed-off-by: NJarek Poplawski <jarkao2@gmail.com>
Acked-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9d2f4720
...@@ -406,6 +406,7 @@ static unsigned int drr_drop(struct Qdisc *sch) ...@@ -406,6 +406,7 @@ static unsigned int drr_drop(struct Qdisc *sch)
if (cl->qdisc->ops->drop) { if (cl->qdisc->ops->drop) {
len = cl->qdisc->ops->drop(cl->qdisc); len = cl->qdisc->ops->drop(cl->qdisc);
if (len > 0) { if (len > 0) {
sch->q.qlen--;
if (cl->qdisc->q.qlen == 0) if (cl->qdisc->q.qlen == 0)
list_del(&cl->alist); list_del(&cl->alist);
return len; return len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册