[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question about dsmark and tcindex



Hi,

I have a question about dsmark qdisc and tcindex filter.
 
I suppose  that the result of my commands is that:
 all the packets are remarked with 0x2E in the dsfield.
 And after that, the action of  the tcindex filter is to send all the packets in the qdisc(handle 6:0 pfifo).
But I'm wrong.
 
tc qdisc add dev lo handle 1:0 parent root dsmark indices 64
tc class change dev lo classid 1:1 dsmark mask 0x00 value 0x2e
tc class change dev lo classid 1:2 dsmark mask 0x00 value 0x12
 
# everything must go in flow 1:1
tc filter add dev lo parent 1:0 protocol ip prio 10 u32 match u8 0 0x00  flowid 1:1
tc filter add dev lo parent 1:0 protocol ip prio 20 u32 match u8 6 0xff at 9 match u16 7029  0xffff at 21 flowid 1:2
 
tc qdisc add dev lo parent 1:0 handle 2:0 dsmark indices 64 set_tc_index
 
tc qdisc add dev lo parent 2:0 handle 3:0 prio
tc qdisc add dev lo parent 3:1 handle 4:0 pfifo
tc qdisc add dev lo parent 3:2 handle 5:0 pfifo
tc qdisc add dev lo parent 3:3 handle 6:0 pfifo
 
# every packet have 0x2e in the dsfield thus all the packets must match with the first filter => classid 3:3 => qdisc handle 6:0 pfifo 
tc filter add dev lo  parent 3:0 protocol ip prio 10 handle 0x2e tcindex classid 3:3
tc filter add dev lo  parent 3:0 protocol ip prio 20 handle 0x12 tcindex classid 3:2
tc filter add dev lo  parent 3:0 protocol ip prio 30 handle 0x03 tcindex classid 3:1
tc -s qdisc
 
I'm not a member of this ML. So please reply me directory.
Thank you.
Pierre Villa