提交 6a1b63d4 编写于 作者: T Thomas Graf 提交者: Thomas Graf

[PKT_SCHED]: RED: Dont start idle periods while already idling

We should not interrupt and restart an idle period while idling already.
Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
上级 9e178ff2
......@@ -135,7 +135,7 @@ red_dequeue(struct Qdisc* sch)
skb = qdisc_dequeue_head(sch);
if (skb == NULL)
if (skb == NULL && !red_is_idling(&q->parms))
red_start_of_idle_period(&q->parms);
return skb;
......@@ -154,7 +154,9 @@ static unsigned int red_drop(struct Qdisc* sch)
return len;
}
red_start_of_idle_period(&q->parms);
if (!red_is_idling(&q->parms))
red_start_of_idle_period(&q->parms);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册