hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/tc-testing/tc-tests/actions/sample.json
....@@ -608,5 +608,30 @@
608608 "teardown": [
609609 "$TC actions flush action sample"
610610 ]
611
+ },
612
+ {
613
+ "id": "0a6e",
614
+ "name": "Replace sample action with invalid goto chain control",
615
+ "category": [
616
+ "actions",
617
+ "sample"
618
+ ],
619
+ "setup": [
620
+ [
621
+ "$TC actions flush action sample",
622
+ 0,
623
+ 1,
624
+ 255
625
+ ],
626
+ "$TC actions add action sample rate 1024 group 4 pass index 90"
627
+ ],
628
+ "cmdUnderTest": "$TC actions replace action sample rate 1024 group 7 goto chain 42 index 90 cookie c1a0c1a0",
629
+ "expExitCode": "255",
630
+ "verifyCmd": "$TC actions list action sample",
631
+ "matchPattern": "action order [0-9]+: sample rate 1/1024 group 4 pass.*index 90",
632
+ "matchCount": "1",
633
+ "teardown": [
634
+ "$TC actions flush action sample"
635
+ ]
611636 }
612637 ]