[bufferbloat] Codel: avoid a nul rec_inv_sqrt
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 2 Aug 2012 13:39:50 +0000 (13:39 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 2 Aug 2012 13:39:50 +0000 (13:39 +0000)
commitab27b3f74d840429c8d994162d7db9c5c4aba381
treec1a9f460618857b6dd77cc89618eaf416965a89f
parente38a6c3f378374c3b5e0abaae7d173ed49fefbc6
[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]