diff options
| author | 2010-01-25 15:47:50 -0800 | |
|---|---|---|
| committer | 2010-01-25 15:47:50 -0800 | |
| commit | f81074f86176605bfbfafb9944e27628a4e26ce6 (patch) | |
| tree | ea963e08a132523327986c99ea63768593d5701a /tools/perf/scripts/python | |
| parent | qlge: Only free resources if they were allocated (diff) | |
| download | linux-dev-f81074f86176605bfbfafb9944e27628a4e26ce6.tar.xz linux-dev-f81074f86176605bfbfafb9944e27628a4e26ce6.zip | |
tcp_probe: avoid modulus operation and wrap fix
By rounding up the buffer size to power of 2, several expensive
modulus operations can be avoided. This patch also solves a bug where
the gap need when ring gets full was not being accounted for.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
