tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
202.xx.xx.227 flowid 1:20
I already patch kernel and tc with htb3.6-020525.tgz from
htb website.
Here is the result when there's traffic to 202.xx.xx.227, it should go to
1:20, but fill class 1:10 (red sign).
### eth0: queueing disciplines
qdisc htb 1: r2q 10 default 10 direct_packets_stat 0
Sent 584256
bytes 881 pkts (dropped 0, overlimits 1113)
backlog 35p
### eth0: traffic classes
class htb 1:1 root rate 32Kbit ceil 32Kbit burst 1639b cburst
14704b
Sent 554186 bytes 846 pkts (dropped 0, overlimits
0)
rate 3040bps 3pps
lended: 0 borrowed: 0 giants:
0
tokens: -7997 ctokens: 8145
class htb 1:10 parent 1:1 prio 0 rate 24Kbit ceil 24Kbit burst 1629b cburst
1629b
Sent 584256 bytes 881 pkts (dropped 0,
overlimits 0)
rate 3040bps 3pps backlog 35p
lended: 846
borrowed: 0 giants: 0
tokens: -447876 ctokens: -447876
class htb 1:20 parent 1:1 prio 0 rate 8Kbit ceil 8Kbit burst 1609b cburst
1609b
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0
borrowed: 0 giants: 0
tokens: 1287999 ctokens: 1287999
### eth0: filtering rules
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip
pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh
800::800 order 2048 key ht 800 bkt 0 flowid 1:20
match
ca2ba0e3/ffffffff at 16
Why when i put htb on eth0 to filter class 1:20
the shaping always goes to default class 1:10 not 1:20 class, the
same problem occur when i put htb on eth1?
I already patch the kernel with 3c95x vlan patch
too.