aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorKal Conley <[email protected]>2023-04-03 12:03:59 +0000
committerMartin KaFai Lau <[email protected]>2023-04-05 19:43:52 +0000
commit68e7322142f5e731af222892d384d311835db0f1 (patch)
tree4ce3bda5cba8a4f14b70ccc1d03dc155772a4e55 /tools/bpf/bpftool/prog.c
parentselftests: xsk: Disable IPv6 on VETH1 (diff)
downloadkernel-68e7322142f5e731af222892d384d311835db0f1.tar.gz
kernel-68e7322142f5e731af222892d384d311835db0f1.zip
selftests: xsk: Deflakify STATS_RX_DROPPED test
Fix flaky STATS_RX_DROPPED test. The receiver calls getsockopt after receiving the last (valid) packet which is not the final packet sent in the test (valid and invalid packets are sent in alternating fashion with the final packet being invalid). Since the last packet may or may not have been dropped already, both outcomes must be allowed. This issue could also be fixed by making sure the last packet sent is valid. This alternative is left as an exercise to the reader (or the benevolent maintainers of this file). This problem was quite visible on certain setups. On one machine this failure was observed 50% of the time. Also, remove a redundant assignment of pkt_stream->nb_pkts. This field is already initialized by __pkt_stream_alloc. Fixes: 27e934bec35b ("selftests: xsk: make stat tests not spin on getsockopt") Signed-off-by: Kal Conley <[email protected]> Acked-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions