]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: tc_actions: allow mirred egress test to run on non-offloaded h2
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 10 May 2022 22:09:04 +0000 (01:09 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 May 2022 22:12:23 +0000 (15:12 -0700)
commit95dd25591ef8031adf300edd4e7b544a8130666a
tree5032653729d15e7ab66a2ad7469b6d150a90f3c8
parent0dff1ddff4a73d3cb5f1fd10ac8a98bf4167cde5
selftests: forwarding: tc_actions: allow mirred egress test to run on non-offloaded h2

The host interfaces $h1 and $h2 don't have to be switchdev interfaces,
but due to the fact that we pass $tcflags which may have the value of
"skip_sw", we force $h2 to offload a drop rule for dst_ip, something
which it may not be able to do.

The selftest only wants to verify the hit count of this rule as a means
of figuring out whether the packet was received, so remove the $tcflags
for it and let it be done in software.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/20220510220904.284552-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/tc_actions.sh