1[
2    {
3        "id": "e9a3",
4        "name": "Add u32 with source match",
5        "category": [
6            "filter",
7            "u32"
8        ],
9        "setup": [
10            "$TC qdisc add dev $DEV1 ingress"
11        ],
12        "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",
13        "expExitCode": "0",
14        "verifyCmd": "$TC filter show dev $DEV1 parent ffff:",
15        "matchPattern": "match 7f000002/ffffffff at 12",
16        "matchCount": "0",
17        "teardown": [
18            "$TC qdisc del dev $DEV1 ingress"
19        ]
20    },
21    {
22        "id": "d052",
23        "name": "Add 1M filters with the same action",
24        "category": [
25            "filter",
26            "flower"
27        ],
28        "setup": [
29            "$TC qdisc add dev $DEV2 ingress",
30            "./tdc_batch.py $DEV2 $BATCH_FILE --share_action -n 1000000"
31        ],
32        "cmdUnderTest": "$TC -b $BATCH_FILE",
33        "expExitCode": "0",
34        "verifyCmd": "$TC actions list action gact",
35        "matchPattern": "action order 0: gact action drop.*index 1 ref 1000000 bind 1000000",
36        "matchCount": "1",
37        "teardown": [
38            "$TC qdisc del dev $DEV2 ingress",
39            "/bin/rm $BATCH_FILE"
40        ]
41    }
42]
43