From 612ff68ad16bcc25236b44302b556f40cb19af93 Mon Sep 17 00:00:00 2001 From: Dave Taht Date: Sun, 4 May 2014 11:08:09 -0700 Subject: [PATCH] Codel - disable drop inhibit At nearly any rate, the underlying OS may well have a packet buffered up, so the drop inhibit built into codel is redundant and hurts things at low rates, in particular. --- include/net/codel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/codel.h b/include/net/codel.h index fe0eab3..15c5e43 100644 --- a/include/net/codel.h +++ b/include/net/codel.h @@ -234,7 +234,7 @@ static bool codel_should_drop(const struct sk_buff *skb, stats->maxpacket = qdisc_pkt_len(skb); if (codel_time_before(vars->ldelay, params->target) || - sch->qstats.backlog <= stats->maxpacket) { + sch->qstats.backlog <= 0) { /* went below - stay below for at least interval */ vars->first_above_time = 0; return false; -- 1.7.9.5