提交 d8f64e19 编写于 作者: T Thomas Graf 提交者: Thomas Graf

[PKT_SCHED]: GRED: Fix restart of idle period in WRED mode upon dequeue and drop

Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NArnaldo Carvalho de Melo <acme@mandriva.com>
上级 1e4dfaf9
......@@ -267,7 +267,7 @@ static struct sk_buff *gred_dequeue(struct Qdisc* sch)
return skb;
}
if (gred_wred_mode(t))
if (gred_wred_mode(t) && !red_is_idling(&t->wred_set))
red_start_of_idle_period(&t->wred_set);
return NULL;
......@@ -301,7 +301,7 @@ static unsigned int gred_drop(struct Qdisc* sch)
return len;
}
if (gred_wred_mode(t))
if (gred_wred_mode(t) && !red_is_idling(&t->wred_set))
red_start_of_idle_period(&t->wred_set);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册