Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8f64e19 authored by Thomas Graf's avatar Thomas Graf Committed by Thomas Graf
Browse files

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

parent 1e4dfaf9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;