Codel: avoid a nul rec_inv_sqrt
authorJohn Crispin <john@openwrt.org>
Thu, 2 Aug 2012 13:39:50 +0000 (13:39 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 2 Aug 2012 13:39:50 +0000 (13:39 +0000)
commitf45132d1d444ec33df3938e3e2a78ebee750ed8b
tree39cfe2ed4ad3336d827fa5317067a753e2d335cc
parentc2d3274ffcfdd5711c791b8ddafae3eea3207f06
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>
SVN-Revision: 32950
target/linux/generic/patches-3.3/049-codel-refine-one-condition-to-avoid-a-nul-rec_inv_sqrt.patch [new file with mode: 0644]