4 "name": "Add matchall and try to get it",
10 "requires": "nsPlugin"
13 "$TC qdisc add dev $DEV1 clsact",
14 "$TC filter add dev $DEV1 protocol all pref 1 ingress handle 0x1234 matchall action ok"
16 "cmdUnderTest": "$TC filter get dev $DEV1 protocol all pref 1 ingress handle 0x1234 matchall",
18 "verifyCmd": "$TC filter show dev $DEV1 ingress",
19 "matchPattern": "filter protocol all pref 1 matchall chain 0 handle 0x1234",
22 "$TC qdisc del dev $DEV1 clsact"
27 "name": "Add flower with max handle and then dump it",
33 "$TC qdisc add dev $DEV2 ingress"
35 "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 ingress handle 0xffffffff flower action ok",
37 "verifyCmd": "$TC filter show dev $DEV2 ingress",
38 "matchPattern": "filter protocol ip pref 1 flower.*handle 0xffffffff",
41 "$TC qdisc del dev $DEV2 ingress"
46 "name": "Add 1M filters with the same action",
52 "requires": "nsPlugin"
55 "$TC qdisc add dev $DEV2 ingress",
56 "./tdc_batch.py $DEV2 $BATCH_FILE --share_action -n 1000000"
58 "cmdUnderTest": "$TC -b $BATCH_FILE",
60 "verifyCmd": "$TC actions list action gact",
61 "matchPattern": "action order 0: gact action drop.*index 1 ref 1000000 bind 1000000",
64 "$TC qdisc del dev $DEV2 ingress",
70 "name": "Try to add filter with duplicate key",
76 "requires": "nsPlugin"
79 "$TC qdisc add dev $DEV2 ingress",
80 "$TC filter add dev $DEV2 protocol ip prio 1 ingress 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"
82 "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip prio 1 ingress 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",
84 "verifyCmd": "$TC -s filter show dev $DEV2 ingress",
85 "matchPattern": "filter protocol ip pref 1 flower chain 0 handle",
88 "$TC qdisc del dev $DEV2 ingress"
93 "name": "Add flower filter and then terse dump it",
99 "$TC qdisc add dev $DEV2 ingress"
101 "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 ingress flower dst_mac e4:11:22:11:4a:51 action drop",
103 "verifyCmd": "$TC filter show terse dev $DEV2 ingress",
104 "matchPattern": "filter protocol ip pref 1 flower.*handle",
107 "$TC qdisc del dev $DEV2 ingress"
112 "name": "Add flower filter and verify that terse dump doesn't output filter key",
118 "$TC qdisc add dev $DEV2 ingress"
120 "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 ingress flower dst_mac e4:11:22:11:4a:51 action drop",
122 "verifyCmd": "$TC filter show terse dev $DEV2 ingress",
123 "matchPattern": " dst_mac e4:11:22:11:4a:51",
126 "$TC qdisc del dev $DEV2 ingress"