From: Dave Taht <[email protected]>

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

_______________________________________________
Codel mailing list
[email protected]
https://lists.bufferbloat.net/listinfo/codel

Reply via email to