aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/prog_tests/netcnt.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-11-02 22:41:13 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2021-11-03 15:43:09 +0100
commit401a33da3a45cc05859b121314f8ab52c2c01977 (patch)
treeb0b6382ec90095d9e56113e534bb509c1ef520ec /tools/testing/selftests/bpf/prog_tests/netcnt.c
parentselftests/bpf: Test RENAME_EXCHANGE and RENAME_NOREPLACE on bpffs (diff)
downloadwireguard-linux-401a33da3a45cc05859b121314f8ab52c2c01977.tar.xz
wireguard-linux-401a33da3a45cc05859b121314f8ab52c2c01977.zip
selftests/bpf: Make netcnt selftests serial to avoid spurious failures
When running `./test_progs -j` test_netcnt fails with a very high probability, undercounting number of packets received (9999 vs expected 10000). It seems to be conflicting with other cgroup/skb selftests. So make it serial for now to make parallel mode more robust. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20211103054113.2130582-1-andrii@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/netcnt.c')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/netcnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/netcnt.c b/tools/testing/selftests/bpf/prog_tests/netcnt.c
index 6ede48bde91b..954964f0ac3d 100644
--- a/tools/testing/selftests/bpf/prog_tests/netcnt.c
+++ b/tools/testing/selftests/bpf/prog_tests/netcnt.c
@@ -8,7 +8,7 @@
#define CG_NAME "/netcnt"
-void test_netcnt(void)
+void serial_test_netcnt(void)
{
union percpu_net_cnt *percpu_netcnt = NULL;
struct bpf_cgroup_storage_key key;