I noticed some rough edges while running the sockmap and reuseport tests in a virtme environment. It only has a single CPU, and the root filesystem is mounted read-only. The cause for patch #2 is either the VM being slow because it only has a single CPU. Patches #3-4 helped me narrow down the problem, so they are probably useful for others as well. Lorenz Bauer (4): selftests: bpf: use a temporary file in test_sockmap selftests: bpf: ignore RST packets for reuseport tests selftests: bpf: make reuseport test output more legible selftests: bpf: reset global state between reuseport test runs .../bpf/prog_tests/select_reuseport.c | 44 ++++++++++++++++--- .../bpf/progs/test_select_reuseport_kern.c | 6 +++ tools/testing/selftests/bpf/test_sockmap.c | 15 +++---- 3 files changed, 50 insertions(+), 15 deletions(-) -- 2.20.1