1
0
Fork 0

[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: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
wifi-calibration
Thomas Graf 2005-11-05 21:14:07 +01:00 committed by Thomas Graf
parent 9e178ff27c
commit 6a1b63d467
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}