]> 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)
commit20efb787beb33ba94dcbb02559d6e0fd1f769102
tree1e319119cd16d760483f6956b04fba3ec0c99c27
parent15064a0744f94a64743529d0555f5726dbea4827
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