help with tc qdisc
Hi all,
i would like to have 2 different class:
1) for a specific traffic selected throug a filter
2) for all other packets
on the first class i need to set both the maximum rate (x) than the buffer size (y).
now, what i'm going to set is:
....
tc qdisc add dev eth0 root handle 1: htb default 11
tc class add dev eth0 parent 1: classid 1:1 htb
tc class add dev eth0 parent 1:1 classid 1:10 htb /
rate x ceil x
tc class add dev eth0 parent 1:1 classid 1:11 htb
tc filter add dev eth0 protocol ip parent 1:0 u32 /
match ip dport 9000 0xffff flowid 1:10
tc qdisc add dev eth0 bfifo limit y
....
is it correct or there is any easier way to do this?
Regards.
|