aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2012-07-29 20:52:21 +0000
committerDavid S. Miller <[email protected]>2012-08-10 16:52:54 -0700
commit2359a47671fc4fb0fe5e9945f76c2cb10792c0f8 (patch)
tree2ff0ca201a2797f26414dcfe5df90ededb94375b /tools/perf/util/trace-event-scripting.c
parent55461ddbcb0b36d1575e01fb4f130c609ca1cfee (diff)
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 <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions