]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
tc: netem rate shaping and cell extension
authorHagen Paul Pfeifer <hagen@jauu.net>
Thu, 19 Jan 2012 22:28:27 +0000 (14:28 -0800)
committerStephen Hemminger <shemminger@vyatta.com>
Thu, 19 Jan 2012 22:28:27 +0000 (14:28 -0800)
commit6b8dc4deea219d6c4392707bb647cc49cdc46da7
treef7598ba9a25a777a69358b5c39fb27bb23d11be3
parent30d10db5667d3ca86917ca86c1a65cfcc45965f9
tc: netem rate shaping and cell extension

This patch add rate shaping as well as cell support. The link-rate can be
specified via rate options. Three optional arguments control the cell
knobs: packet-overhead, cell-size, cell-overhead. To ratelimit eth0 root
queue to 5kbit/s, with a 20 byte packet overhead, 100 byte cell size and
a 5 byte per cell overhead:

tc qdisc add dev eth0 root netem rate 5kbit 20 100 5

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
tc/q_netem.c