]> git.baikalelectronics.ru Git - kernel.git/commit
tc-testing: add simple action change test
authorVlad Buslov <vladbu@nvidia.com>
Tue, 30 Mar 2021 10:41:10 +0000 (13:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 00:11:20 +0000 (17:11 -0700)
commit982384e0818e8062897b46404bb4268fb0804693
tree1e319119cd16d760483f6956b04fba3ec0c99c27
parent7f16076d064daf03c4c258b052c4492aacfdede7
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>
tools/testing/selftests/tc-testing/tc-tests/actions/simple.json