Hi
When I list all the qdisc with tc command it is not possible to see the
parent of the qdisc.
An example by the book.
# tc qdisc add dev eth0 root handle 1: htb default 30
# tc class add dev eth0 parent 1: classid 1:1 htb rate 6mbit burst 15k
# tc class add dev eth0 parent 1:1 classid 1:10 htb rate 5mbit burst 15k
# tc class add dev eth0 parent 1:1 classid 1:20 htb rate 3mbit ceil
6mbit burst 15k
# tc class add dev eth0 parent 1:1 classid 1:30 htb rate 1kbit ceil
6mbit burst 15k
# tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
# tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
# tc qdisc add dev eth0 parent 1:30 handle 30: sfq perturb 10
(taken from the lartc howto)
> tc -d qdisc list
qdisc sfq 30: dev eth0 quantum 1514b limit 128p flows 128/1024 perturb
10sec
qdisc sfq 20: dev eth0 quantum 1514b limit 128p flows 128/1024 perturb
10sec
qdisc sfq 10: dev eth0 quantum 1514b limit 128p flows 128/1024 perturb
10sec
qdisc htb 1: dev eth0 r2q 10 default 30 direct_packets_stat 7190 ver
3.14
if I try the same with class I get the parent of the
classes> tc -d class list dev eth0
class htb 1:1 root rate 6Mbit ceil 6Mbit burst 15Kb/8 mpu 0b cburst
9463b/8 mpu 0b level 7
class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 65536 rate 5Mbit ceil
5Mbit burst 15Kb/8 mpu 0b cburst 8151b/8 mpu 0b level 0
class htb 1:20 parent 1:1 leaf 20: prio 0 quantum 39321 rate 3Mbit ceil
6Mbit burst 15Kb/8 mpu 0b cburst 9463b/8 mpu 0b level 0
class htb 1:30 parent 1:1 leaf 30: prio 0 quantum 1000 rate 1Kbit ceil
6Mbit burst 15Kb/8 mpu 0b cburst 9463b/8 mpu 0b level 0
I have looked at the tc code, and it seems that parent information
should be available for qdisc. But t->tcm_parent is NULL and therefor
nothing printed.
Best regards
Kim Carlsen
* Using debian stable, iproute patched with htb3.6
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/