diff options
author | 2020-01-24 11:27:54 +0000 | |
---|---|---|
committer | 2020-01-24 22:12:13 +0100 | |
commit | 51bad0f05616c43d6d34b0a19bcc9bdab8e8fb39 (patch) | |
tree | 842e3282420e8bdcb46247af55e02259c9fc7f02 /tools/lib/bpf/libbpf.c | |
parent | selftests: bpf: Make reuseport test output more legible (diff) | |
download | linux-dev-51bad0f05616c43d6d34b0a19bcc9bdab8e8fb39.tar.xz linux-dev-51bad0f05616c43d6d34b0a19bcc9bdab8e8fb39.zip |
selftests: bpf: Reset global state between reuseport test runs
Currently, there is a lot of false positives if a single reuseport test
fails. This is because expected_results and the result map are not cleared.
Zero both after individual test runs, which fixes the mentioned false
positives.
Fixes: 91134d849a0e ("bpf: Test BPF_PROG_TYPE_SK_REUSEPORT")
Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200124112754.19664-5-lmb@cloudflare.com
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions