summaryrefslogtreecommitdiffstats
path: root/net/xdp
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2020-11-30 14:33:36 -0800
committerAlexei Starovoitov <ast@kernel.org>2020-12-01 20:21:45 -0800
commit156c9b70dbfb83eeeff39e9202eb5f8bb6d0fd04 (patch)
tree5ef1dc75822e68a83311adc091398f4ded990c19 /net/xdp
parentf6a8250ea1e42ad1f4f3bab01c851ec5fd48f0e7 (diff)
downloadlinux-156c9b70dbfb83eeeff39e9202eb5f8bb6d0fd04.tar.bz2
selftests/bpf: Drain ringbuf samples at the end of test
Avoid occasional test failures due to the last sample being delayed to another ring_buffer__poll() call. Instead, drain samples completely with ring_buffer__consume(). This is supposed to fix a rare and non-deterministic test failure in libbpf CI. Fixes: cb1c9ddd5525 ("selftests/bpf: Add BPF ringbuf selftests") Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20201130223336.904192-2-andrii@kernel.org
Diffstat (limited to 'net/xdp')
0 files changed, 0 insertions, 0 deletions