]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:55:54 +0000 (08:55 +0200)
commitaadc5d1ee02dccdf5ff4f0d73cacda4c8cc475b3
tree0c5ee91ed74b8b0069073dbaa88baed732abcea0
parent468bcedcd85065ce1549055c46acb8de0a1ddb04
tc-testing: add test-cases for numeric and invalid control action

[ Upstream commit 25a8238f4cc8425d4aade4f9041be468d0e8aa2e ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/tc-testing/tc-tests/actions/police.json