android_kernel_motorola_sm6375/tools/testing
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ido Schimmel 4b854879f8 selftests: forwarding: tc_flower: Relax success criterion
[ Upstream commit 9ee37e53e7687654b487fc94e82569377272a7a8 ]

The test checks that filters that match on source or destination MAC
were only hit once. A host can send more than one packet with a given
source or destination MAC, resulting in failures.

Fix by relaxing the success criterion and instead check that the filters
were not hit zero times. Using tc_check_at_least_x_packets() is also an
option, but it is not available in older kernels.

Fixes: 07e5c75184 ("selftests: forwarding: Introduce tc flower matching tests")
Reported-by: Mirsad Todorovac <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]/
Signed-off-by: Ido Schimmel <[email protected]>
Reviewed-by: Petr Machata <[email protected]>
Tested-by: Mirsad Todorovac <[email protected]>
Reviewed-by: Hangbin Liu <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-08-30 16:27:08 +02:00
..
fault-injection
ktest ktest.pl: Add RUN_TIMEOUT option with default unlimited 2023-03-11 16:44:05 +01:00
nvdimm tools/test/nvdimm: Fix out of tree build 2020-04-29 16:32:59 +02:00
radix-tree radix tree test suite: fix incorrect allocation size for pthreads 2023-08-16 18:19:23 +02:00
scatterlist
selftests selftests: forwarding: tc_flower: Relax success criterion 2023-08-30 16:27:08 +02:00
vsock