diff options
author | Lucas Bates <lucasb@mojatatu.com> | 2017-10-14 00:51:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-15 04:47:53 +0300 |
commit | ae3c33c157565301544570ff3476280279d43d7f (patch) | |
tree | df25e4b85168f4ec7d2f9dbc0c0ae69c882fca20 /tools/testing/selftests/tc-testing/tc-tests | |
parent | 6eda447e01bdc992c8b1e081ebadc255e7549e13 (diff) | |
download | linux-ae3c33c157565301544570ff3476280279d43d7f.tar.xz |
tc-testing: Add test cases for flushing actions
Tests for flushing gact and mirred were missing. This patch
adds test cases to explicitly test the flush of any installed
gact/mirred actions.
Signed-off-by: Lucas Bates <lucasb@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tc-tests')
-rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/tests.json | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/tests.json b/tools/testing/selftests/tc-testing/tc-tests/actions/tests.json index 6973bdc5b5bf..2ea00652f9ab 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/tests.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/tests.json @@ -246,6 +246,27 @@ ] }, { + "id": "3edf", + "name": "Flush gact actions", + "category": [ + "actions", + "gact" + ], + "setup": [ + "$TC actions add action reclassify index 101", + "$TC actions add action reclassify index 102", + "$TC actions add action reclassify index 103", + "$TC actions add action reclassify index 104", + "$TC actions add action reclassify index 105" + ], + "cmdUnderTest": "$TC actions flush action gact", + "expExitCode": "0", + "verifyCmd": "$TC actions list action gact", + "matchPattern": "action order [0-9]*: gact action reclassify", + "matchCount": "0", + "teardown": [] + }, + { "id": "63ec", "name": "Delete pass action", "category": [ @@ -469,6 +490,32 @@ ] }, { + "id": "58c3", + "name": "Flush mirred actions", + "category": [ + "actions", + "mirred" + ], + "setup": [ + [ + "$TC actions flush action mirred", + 0, + 1, + 255 + ], + "$TC actions add action mirred egress mirror index 1 dev lo", + "$TC actions add action mirred egress redirect index 2 dev lo" + ], + "cmdUnderTest": "$TC actions show action mirred", + "expExitCode": "0", + "verifyCmd": "$TC actions list action mirred", + "matchPattern": "[Mirror|Redirect] to device lo", + "matchCount": "0", + "teardown": [ + "$TC actions flush action mirred" + ] + }, + { "id": "d7c0", "name": "Add invalid mirred direction", "category": [ @@ -1162,4 +1209,4 @@ "$TC actions flush action ife" ] } -]
\ No newline at end of file +] |