hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/tc-testing/tc-tests/actions/ife.json
....@@ -1060,5 +1060,30 @@
10601060 "matchPattern": "action order [0-9]*: ife encode action pipe.*allow prio.*index 4",
10611061 "matchCount": "0",
10621062 "teardown": []
1063
+ },
1064
+ {
1065
+ "id": "a0e2",
1066
+ "name": "Replace ife encode action with invalid goto chain control",
1067
+ "category": [
1068
+ "actions",
1069
+ "ife"
1070
+ ],
1071
+ "setup": [
1072
+ [
1073
+ "$TC actions flush action ife",
1074
+ 0,
1075
+ 1,
1076
+ 255
1077
+ ],
1078
+ "$TC actions add action ife encode allow mark pass index 90"
1079
+ ],
1080
+ "cmdUnderTest": "$TC actions replace action ife encode allow mark goto chain 42 index 90 cookie c1a0c1a0",
1081
+ "expExitCode": "255",
1082
+ "verifyCmd": "$TC actions get action ife index 90",
1083
+ "matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E .*allow mark.*index 90 ref",
1084
+ "matchCount": "1",
1085
+ "teardown": [
1086
+ "$TC actions flush action ife"
1087
+ ]
10631088 }
10641089 ]