xref: /linux/tools/testing/selftests/tc-testing/tc-tests/actions/gact-rollback.json (revision 546b928da0427b0d6c663cbb992bd7bfa9ac7971)
1[
2    {
3        "id": "e3b1",
4        "name": "Failed action batch releases a bound action reference",
5        "category": [
6            "actions",
7            "gact"
8        ],
9        "plugins": {
10           "requires": "nsPlugin"
11        },
12        "setup": [
13            "$TC qdisc add dev $DEV1 ingress",
14            "$TC actions add action pass index 1",
15            "$TC filter add dev $DEV1 protocol all ingress prio 1 matchall action gact index 1"
16        ],
17        "cmdUnderTest": "$TC actions replace action pass index 1 action goto chain 42 index 3",
18        "expExitCode": "255",
19        "verifyCmd": "$TC actions ls action gact",
20        "matchPattern": "total acts 1.*index 1 ref 2 bind 1",
21        "matchCount": "1",
22        "teardown": [
23            "$TC qdisc del dev $DEV1 ingress"
24        ]
25    },
26    {
27        "id": "e3b2",
28        "name": "Failed action batch releases entries after a bound action",
29        "category": [
30            "actions",
31            "gact"
32        ],
33        "plugins": {
34           "requires": "nsPlugin"
35        },
36        "setup": [
37            "$TC qdisc add dev $DEV1 ingress",
38            "$TC actions add action pass index 1",
39            "$TC filter add dev $DEV1 protocol all ingress prio 1 matchall action gact index 1",
40            [
41                "$TC actions replace action pass index 1 action pass index 2 action goto chain 42 index 3",
42                255
43            ]
44        ],
45        "cmdUnderTest": "$TC actions add action pass index 2",
46        "expExitCode": "0",
47        "verifyCmd": "$TC actions ls action gact",
48        "matchPattern": "total acts 2.*index 1 ref 2 bind 1.*index 2 ref 1 bind 0",
49        "matchCount": "1",
50        "teardown": [
51            "$TC qdisc del dev $DEV1 ingress"
52        ]
53    },
54    {
55        "id": "e3b3",
56        "name": "Failed action batch releases repeated references to a bound action",
57        "category": [
58            "actions",
59            "gact"
60        ],
61        "plugins": {
62           "requires": "nsPlugin"
63        },
64        "setup": [
65            "$TC qdisc add dev $DEV1 ingress",
66            "$TC actions add action pass index 1",
67            "$TC filter add dev $DEV1 protocol all ingress prio 1 matchall action gact index 1"
68        ],
69        "cmdUnderTest": "$TC actions replace action pass index 1 action pass index 1 action goto chain 42 index 3",
70        "expExitCode": "255",
71        "verifyCmd": "$TC actions ls action gact",
72        "matchPattern": "total acts 1.*index 1 ref 2 bind 1",
73        "matchCount": "1",
74        "teardown": [
75            "$TC qdisc del dev $DEV1 ingress"
76        ]
77    }
78]
79