hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/tc-testing/tc-tests/actions/police.json
....@@ -715,5 +715,54 @@
715715 "teardown": [
716716 "$TC actions flush action police"
717717 ]
718
+ },
719
+ {
720
+ "id": "b48b",
721
+ "name": "Add police action with exceed goto chain control action",
722
+ "category": [
723
+ "actions",
724
+ "police"
725
+ ],
726
+ "setup": [
727
+ [
728
+ "$TC actions flush action police",
729
+ 0,
730
+ 1,
731
+ 255
732
+ ]
733
+ ],
734
+ "cmdUnderTest": "$TC actions add action police rate 1mbit burst 1k conform-exceed pass / goto chain 42",
735
+ "expExitCode": "255",
736
+ "verifyCmd": "$TC actions ls action police",
737
+ "matchPattern": "action order [0-9]*: police 0x1 rate 1Mbit burst 1Kb mtu 2Kb action pass/goto chain 42",
738
+ "matchCount": "0",
739
+ "teardown": [
740
+ "$TC actions flush action police"
741
+ ]
742
+ },
743
+ {
744
+ "id": "689e",
745
+ "name": "Replace police action with invalid goto chain control",
746
+ "category": [
747
+ "actions",
748
+ "police"
749
+ ],
750
+ "setup": [
751
+ [
752
+ "$TC actions flush action police",
753
+ 0,
754
+ 1,
755
+ 255
756
+ ],
757
+ "$TC actions add action police rate 3mbit burst 250k drop index 90"
758
+ ],
759
+ "cmdUnderTest": "$TC actions replace action police rate 3mbit burst 250k goto chain 42 index 90 cookie c1a0c1a0",
760
+ "expExitCode": "255",
761
+ "verifyCmd": "$TC actions get action police index 90",
762
+ "matchPattern": "action order [0-9]*: police 0x5a rate 3Mbit burst 250Kb mtu 2Kb action drop",
763
+ "matchCount": "1",
764
+ "teardown": [
765
+ "$TC actions flush action police"
766
+ ]
718767 }
719768 ]