]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66386054c17ebc404a3e8a9376493f495ea696c5
tree5a119bc799c2a00a0b215f958f945b917297f001
parentbbc4078904bb288b266fa1eba9775fa295ce2338
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