tc-testing: add test-cases for numeric and invalid control action
authorPaolo Abeni <pabeni@redhat.com>
Wed, 29 Aug 2018 08:22:34 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2018 05:10:59 +0000 (22:10 -0700)
commit25a8238f4cc8425d4aade4f9041be468d0e8aa2e
tree5a119bc799c2a00a0b215f958f945b917297f001
parent97763dc0f4010bc20e2969a6bf9a40a2551c4f79
tc-testing: add test-cases for numeric and invalid control action

Only the police action allows us to specify an arbitrary numeric value
for the control action. This change introduces an explicit test case
for the above feature and then leverage it for testing the kernel behavior
for invalid control actions (reject).

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/actions/police.json