selftests/bpf: improve netcnt test robustness
authorAndrii Nakryiko <andrii@kernel.org>
Mon, 15 May 2023 20:48:33 +0000 (13:48 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 17 May 2023 03:57:16 +0000 (20:57 -0700)
commit24a86d833bc5509ad34343dd6c649ea11ed1cad3
treef4d92564ac4dcefdf592aff26c566ce54028620e
parente7480a44d7c4ce4691fa6bcdb0318f0d81fe4b12
selftests/bpf: improve netcnt test robustness

Change netcnt to demand at least 10K packets, as we frequently see some
stray packet arriving during the test in BPF CI. It seems more important
to make sure we haven't lost any packet than enforcing exact number of
packets.

Cc: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20230515204833.2832000-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/netcnt.c