[bufferbloat] Codel: avoid a nul rec_inv_sqrt
authorJohn Crispin <blogic@openwrt.org>
Thu, 2 Aug 2012 13:39:50 +0000 (13:39 +0000)
committerJohn Crispin <blogic@openwrt.org>
Thu, 2 Aug 2012 13:39:50 +0000 (13:39 +0000)
commit34b1cc667c2001dd5f8750230b562ba6ca8f4153
treec1a9f460618857b6dd77cc89618eaf416965a89f
parent894d03b7158265e8e1fae350a51090fda9c15048
[bufferbloat] Codel: avoid a nul rec_inv_sqrt

One condition before codel_Newton_step() was not good if
we never left the dropping state for a flow. As a result
rec_inv_sqrt was 0, instead of the ~0 initial value.

codel control law was then set to a very aggressive mode, dropping
many packets before reaching 'target' and recovering from this problem.

Brought over from 3.5-stable

Signed-off-by: Dave Taht <dave.taht@bufferbloat.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32950 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/patches-3.3/049-codel-refine-one-condition-to-avoid-a-nul-rec_inv_sqrt.patch [new file with mode: 0644]