summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-02-12 00:12:07 +0000
committerDavid S. Miller <davem@davemloft.net>2013-02-12 18:59:45 -0500
commitc6d14ff11bec4c02601be198c84a5c76d1af90fc (patch)
tree8cafec65a87300ffb825c5c08eafb704cc1dd56a /net/core
parent0e243218bac42ebd0a9c19ceb0003410d302d008 (diff)
downloadlinux-stable-c6d14ff11bec4c02601be198c84a5c76d1af90fc.tar.gz
linux-stable-c6d14ff11bec4c02601be198c84a5c76d1af90fc.tar.bz2
linux-stable-c6d14ff11bec4c02601be198c84a5c76d1af90fc.zip
act_police: improved accuracy at high rates
Current act_police uses rate table computed by the "tc" userspace program, which has the following issue: The rate table has 256 entries to map packet lengths to token (time units). With TSO sized packets, the 256 entry granularity leads to loss/gain of rate, making the token bucket inaccurate. Thus, instead of relying on rate table, this patch explicitly computes the time and accounts for packet transmission times with nanosecond granularity. This is a followup to 56b765b79e9a78dc7d3f8850ba5e5567205a3ecd ("htb: improved accuracy at high rates"). Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions