4 "name": "Add u32 with source match",
10 "requires": "nsPlugin"
13 "$TC qdisc add dev $DEV1 ingress"
15 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 1 u32 match ip src 127.0.0.1/32 flowid 1:1 action ok",
17 "verifyCmd": "$TC filter show dev $DEV1 parent ffff:",
18 "matchPattern": "match 7f000001/ffffffff at 12",
21 "$TC qdisc del dev $DEV1 ingress"
26 "name": "Add matchall and try to get it",
32 "requires": "nsPlugin"
35 "$TC qdisc add dev $DEV1 clsact",
36 "$TC filter add dev $DEV1 protocol all pref 1 ingress handle 0x1234 matchall action ok"
38 "cmdUnderTest": "$TC filter get dev $DEV1 protocol all pref 1 ingress handle 0x1234 matchall",
40 "verifyCmd": "$TC filter show dev $DEV1 ingress",
41 "matchPattern": "filter protocol all pref 1 matchall chain 0 handle 0x1234",
44 "$TC qdisc del dev $DEV1 clsact"
49 "name": "Add flower with max handle and then dump it",
55 "$TC qdisc add dev $DEV2 ingress"
57 "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 parent ffff: handle 0xffffffff flower action ok",
59 "verifyCmd": "$TC filter show dev $DEV2 ingress",
60 "matchPattern": "filter protocol ip pref 1 flower.*handle 0xffffffff",
63 "$TC qdisc del dev $DEV2 ingress"
68 "name": "Add 1M filters with the same action",
74 "requires": "nsPlugin"
77 "$TC qdisc add dev $DEV2 ingress",
78 "./tdc_batch.py $DEV2 $BATCH_FILE --share_action -n 1000000"
80 "cmdUnderTest": "$TC -b $BATCH_FILE",
82 "verifyCmd": "$TC actions list action gact",
83 "matchPattern": "action order 0: gact action drop.*index 1 ref 1000000 bind 1000000",
86 "$TC qdisc del dev $DEV2 ingress",
92 "name": "Try to add filter with duplicate key",
98 "requires": "nsPlugin"
101 "$TC qdisc add dev $DEV2 ingress",
102 "$TC filter add dev $DEV2 protocol ip prio 1 parent ffff: flower dst_mac e4:11:22:11:4a:51 src_mac e4:11:22:11:4a:50 ip_proto tcp src_ip 1.1.1.1 dst_ip 2.2.2.2 action drop"
104 "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip prio 1 parent ffff: flower dst_mac e4:11:22:11:4a:51 src_mac e4:11:22:11:4a:50 ip_proto tcp src_ip 1.1.1.1 dst_ip 2.2.2.2 action drop",
106 "verifyCmd": "$TC -s filter show dev $DEV2 ingress",
107 "matchPattern": "filter protocol ip pref 1 flower chain 0 handle",
110 "$TC qdisc del dev $DEV2 ingress"