Eric Dumazet
841fc7bc98
red: harddrop support and cleanups
...
Add harddrop support (kernel support added a long time ago), and various
cleanups.
min BYTES, max BYTES are now optional and follow Sally Floyd's
recommendations.
By the way, our default 2% probability is a bit low, Sally recommends 10%.
Not a big deal if upcoming adaptative algo is deployed.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
2011-12-08 16:43:18 -08:00
Eric Dumazet
ab15aeacf5
red: make burst optional
...
Documentation advises to set burst to (min+min+max)/(3*avpkt)
Let tc do this automatically if user doesnt provide burst himself.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
2011-12-01 09:23:49 -08:00
Florian Westphal
8d8de1139c
tc: remove stale code
...
remove unused #define and "ok" statements.
Signed-off-by: Florian Westphal <fwestphal@astaro.com>
2010-01-21 10:13:01 -08:00
Florian Westphal
ddf216c863
tc: red, gred, tbf: more helpful error messages
...
$ tc qdisc add dev eth1 root tbf
RTNETLINK answers: Invalid argument
$ tc qdisc add dev eth1 root red
RTNETLINK answers: Invalid argument
with patch:
$ tc qdisc add dev eth1 root red
Required parameter (min, max, burst, limit, avpkt) is missing
$ tc qdisc add dev eth1 root tbf
Usage: ... tbf limit BYTES burst BYTES[/BYTES] rate KBPS ...
Signed-off-by: Florian Westphal <fw@strlen.de>
2010-01-21 10:12:57 -08:00
Stephen Hemminger
ae665a522b
Remove trailing whitespace
...
Go through source files and remove all trailing whitespace
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-05 10:10:22 -08:00
4!tgraf
3b3ecd31c1
Use parse_rtattr_nested
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
4!tgraf
228569c3ff
Use NLMSG_TAIL
...
(Logical change 1.127)
2005-01-18 01:24:18 +00:00
net[shemminger]!kaber
95812b56a5
: prevent tc crashes
...
(Logical change 1.81)
2004-09-28 18:35:49 +00:00
osdl.net!shemminger
f2f99e2eef
no longer need xstats stub
...
(Logical change 1.77)
2004-08-31 17:45:21 +00:00
osdl.org!shemminger
aba5acdfdb
(Logical change 1.3)
2004-04-15 20:56:59 +00:00
osdl.org!shemminger
86fdf0e47b
Initial revision
2004-04-15 20:56:59 +00:00