From: Eric Dumazet Date: Sun, 29 Jul 2012 20:52:21 +0000 (+0000) Subject: codel: refine one condition to avoid a nul rec_inv_sqrt X-Git-Tag: v3.6-rc2~15^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2359a47671fc4fb0fe5e9945f76c2cb10792c0f8;p=pandora-kernel.git codel: refine one condition to 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. To keep codel_vars_init() as efficient as possible, refine the condition to make sure rec_inv_sqrt initial value is correct Many thanks to Anton Mich for discovering the issue and suggesting a fix. Reported-by: Anton Mich Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed