Skip to content

Commit

Permalink
[PKT_SCHED]: GRED: Fix restart of idle period in WRED mode upon deque…
Browse files Browse the repository at this point in the history
…ue and drop

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
  • Loading branch information
Thomas Graf authored and Thomas Graf committed Nov 5, 2005
1 parent 1e4dfaf commit d8f64e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/sched/sch_gred.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d8f64e1

Please sign in to comment.