diff options
author | Boris Sukholitko <boris.sukholitko@broadcom.com> | 2021-06-01 15:30:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-01 16:54:42 -0700 |
commit | 8fd52b1f923c3ebd41da678b537021b88830494e (patch) | |
tree | d57a897769a72f656f9644ab0cd7aeaf46cca695 /tools | |
parent | 8323b20f1d76b10fb413daae6abf76b7b903c8de (diff) | |
download | linux-8fd52b1f923c3ebd41da678b537021b88830494e.tar.gz linux-8fd52b1f923c3ebd41da678b537021b88830494e.tar.bz2 linux-8fd52b1f923c3ebd41da678b537021b88830494e.zip |
net/sched: act_vlan: Test priority 0 modification
Because explicitly being set, the priority 0 should appear
in the output.
Signed-off-by: Boris Sukholitko <boris.sukholitko@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json b/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json index eccbf0d7c7b9..2aad4caa8581 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/vlan.json @@ -446,6 +446,30 @@ "teardown": [] }, { + "id": "ba5b", + "name": "Add vlan modify action for protocol 802.1Q setting priority 0", + "category": [ + "actions", + "vlan" + ], + "setup": [ + [ + "$TC actions flush action vlan", + 0, + 1, + 255 + ] + ], + "cmdUnderTest": "$TC actions add action vlan modify protocol 802.1Q id 5 priority 0 index 100", + "expExitCode": "0", + "verifyCmd": "$TC actions get action vlan index 100", + "matchPattern": "action order [0-9]+: vlan.*modify id 100 priority 0 protocol 802.1Q pipe.*index 100 ref", + "matchCount": "0", + "teardown": [ + "$TC actions flush action vlan" + ] + }, + { "id": "6812", "name": "Add vlan modify action for protocol 802.1Q", "category": [ |