Vadim Kochan
67e1d73be1
tc: Allow to easy change network namespace
...
Added new '-netns' option to simplify executing following cmd:
ip netns exec NETNS tc OPTIONS COMMAND OBJECT
to
tc -n[etns] NETNS OPTIONS COMMAND OBJECT
e.g.:
tc -net vnet0 qdisc
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
2014-12-27 10:22:34 -08:00
Vadim Kochan
d954b34a1f
tc class: Show classes as ASCII graph
...
Added new '-g[raph]' option which shows classes in the graph view.
Meanwhile only generic stats info output is supported.
e.g.:
$ tc/tc -g class show dev tap0
+---(1:2) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
| +---(1:40) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
| +---(1:50) htb rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
| | +---(1:51) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
| |
| +---(1:60) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
|
+---(1:1) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
+---(1:10) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
+---(1:20) htb prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
+---(1:30) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
$ tc/tc -g -s class show dev tap0
+---(1:2) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
| | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| | rate 0bit 0pps backlog 0b 0p requeues 0
| |
| +---(1:40) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
| | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| | rate 0bit 0pps backlog 0b 0p requeues 0
| |
| +---(1:50) htb rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
| | | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| | | rate 0bit 0pps backlog 0b 0p requeues 0
| | |
| | +---(1:51) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
| | Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| | rate 0bit 0pps backlog 0b 0p requeues 0
| |
| +---(1:60) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| rate 0bit 0pps backlog 0b 0p requeues 0
|
+---(1:1) htb rate 6Mbit ceil 6Mbit burst 15Kb cburst 1599b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| rate 0bit 0pps backlog 0b 0p requeues 0
|
+---(1:10) htb prio 0 rate 5Mbit ceil 5Mbit burst 15Kb cburst 1600b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| rate 0bit 0pps backlog 0b 0p requeues 0
|
+---(1:20) htb prio 0 rate 3Mbit ceil 6Mbit burst 15Kb cburst 1599b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| rate 0bit 0pps backlog 0b 0p requeues 0
|
+---(1:30) htb prio 0 rate 1Kbit ceil 6Mbit burst 15Kb cburst 1599b
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
2014-12-27 10:16:51 -08:00
Stephen Hemminger
a3aa47a559
Make tc and ip batch mode consistent
...
Change the code for tc and ip so that batch mode is handled
the same.
2013-07-16 10:04:05 -07:00
Petr Jediný
10494d2724
Changing commandline help text to be more uniform...
2009-03-27 11:05:44 -07:00
Stephen Hemminger
44dcfe8201
Change formatting of u32 back to default
...
Don't break scripts that depend on previous offset/value format.
Introduce a new -pretty flag for decoding, and (*gasp*) document
the formatting arguments.
2008-05-09 15:42:34 -07:00
Stephen Hemminger
84d66882aa
minor typo fixes
...
A couple of obvious typo's.
2008-02-07 22:10:14 -08:00
Stephen Hemminger
aa27f88c84
Add TC_LIB_DIR environment variable.
...
Don't hardcode /usr/lib/tc as a path
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-06-20 15:31:40 -07: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
Jamal Hadi Salim
5bec34845b
This patch adds ability to monitor tc events similar to ipmonitor.
...
User runs "tc monitor" (without quotes) and watches events of
addition, deletion and updates from qdiscs, classes, filters and
actions as they happen.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-08 11:55:15 -07:00
shemminger
f453a0d451
Fix tc pfifo_fast with options
2005-10-07 16:33:21 +00:00
shemminger
8ed63ab1f1
Fix leaks and warnings reported by valgrind.
2005-09-21 19:33:17 +00:00
shemminger
4073448cc8
add usage for batch to tc.
2005-09-01 22:29:05 +00:00
shemminger
351efcde4e
Update header files to 2.6.14
...
Integrate support for DCCP and tcp_diag into ss
Add -batch to ip command
2005-09-01 19:21:50 +00:00
shemminger
f332d16924
Cleanup GCC4 warnings about signedness.
2005-07-05 22:37:15 +00:00
shemminger
dd3e90853d
Fix off-by-one while generating argument vector
2005-06-23 17:32:22 +00:00
osdl.net!shemminger
08856f0219
Handle batch mode better.
...
Add comments midline and -force option.
(Logical change 1.173)
2005-03-18 19:40:55 +00:00
site!shemminger
c2f3a0f94d
Fix batch mode, allow continuation, comments, etc.
...
(Logical change 1.169)
2005-03-14 22:19:16 +00:00
osdl.net!shemminger
7901660a0d
change how netlink socket is handled for batch mode.
...
(Logical change 1.166)
2005-03-14 19:34:12 +00:00
osdl.net!shemminger
044ebf35b1
Style fix.
...
2005/03/04 18:32:42-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
osdl.net!shemminger
bb6a21a4fc
Fix build warnings on x86_64
...
(Logical change 1.92)
2004-10-06 23:17:10 +00:00
net[shemminger]!kaber
95812b56a5
: prevent tc crashes
...
(Logical change 1.81)
2004-09-28 18:35:49 +00:00
osdl.net!shemminger
1798c9d5a4
id can be const char
...
(Logical change 1.77)
2004-08-31 17:45:21 +00:00
osdl.net!shemminger
2373fde9b0
new stuff from jamal.
...
(Logical change 1.66)
2004-08-13 23:54:55 +00:00
osdl.net!shemminger
b7a4515085
Default lookup path for tc qdiscplines is /usr/lib/tc
...
Get rid of dead code.
Make BODY static.
(Logical change 1.47)
2004-07-02 17:47:53 +00:00
osdl.net!shemminger
3ea2bf45b0
Add -iec flag
...
(Logical change 1.40)
2004-06-28 20:42:59 +00:00
osdl.org!shemminger
4094db72b6
const char *
...
(Logical change 1.6)
2004-06-02 20:22:08 +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