[Cerowrt-devel] [PATCH 2/2] codel: reduce count after exiting dropping state after one maxpacket
Dave Täht
dave.taht at bufferbloat.net
Thu Aug 23 09:58:42 EDT 2012
From: Dave Taht <dave.taht at bufferbloat.net>
At a knife's edge, where we are rapidly entering and existing
a dropping state, seek lower to find the optimimum.
---
include/net/codel.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/net/codel.h b/include/net/codel.h
index dbfccb7..5e85632 100644
--- a/include/net/codel.h
+++ b/include/net/codel.h
@@ -342,6 +342,9 @@ static struct sk_buff *codel_dequeue(struct Qdisc *sch,
vars->drop_next = codel_control_law(vars->drop_next,
params->interval,
vars->rec_inv_sqrt);
+ } else { /* we dropped out of the dropping state in 1 pkt */
+ vars->count = vars->count > 1 ? vars->count - 1 : 1;
+ codel_Newton_step(vars);
}
}
end:
--
1.7.9.5
More information about the Cerowrt-devel
mailing list