diff options
author | Vlad Buslov <vladbu@nvidia.com> | 2021-03-30 13:41:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-30 17:11:20 -0700 |
commit | e48792a9ec7898444fec6577611a6205e36dfdb9 (patch) | |
tree | 1e319119cd16d760483f6956b04fba3ec0c99c27 /tools/testing/selftests/tc-testing/tc-tests/actions/simple.json | |
parent | df82e9c6dd8426577bf02392928c51c8e7ed30e1 (diff) |
tc-testing: add simple action change test
Use act_simple to verify that action created with 'tc actions change'
command exists after command returns. The goal is to verify internal action
API reference counting to ensure that the case when netlink message has
NLM_F_REPLACE flag set but action with specified index doesn't exist is
handled correctly.
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tc-tests/actions/simple.json')
-rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/simple.json | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/simple.json b/tools/testing/selftests/tc-testing/tc-tests/actions/simple.json index 8e8c1ae12260..e15f708b0fa4 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/simple.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/simple.json @@ -24,6 +24,30 @@ ] }, { + "id": "4297", + "name": "Add simple action with change command", + "category": [ + "actions", + "simple" + ], + "setup": [ + [ + "$TC actions flush action simple", + 0, + 1, + 255 + ] + ], + "cmdUnderTest": "$TC actions change action simple sdata \"Not changed\" index 60", + "expExitCode": "0", + "verifyCmd": "$TC actions list action simple", + "matchPattern": "action order [0-9]*: Simple <Not changed>.*index 60 ref", + "matchCount": "1", + "teardown": [ + "$TC actions flush action simple" + ] + }, + { "id": "6d4c", "name": "Add simple action with duplicate index", "category": [ |