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)
commite48792a9ec7898444fec6577611a6205e36dfdb9
tree1e319119cd16d760483f6956b04fba3ec0c99c27
parentdf82e9c6dd8426577bf02392928c51c8e7ed30e1
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