]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: test_xsk: Don't exit immediately when workers fail
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Oct 2025 08:04:47 +0000 (09:04 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 Oct 2025 16:24:39 +0000 (09:24 -0700)
commit5b2a757a16197dca5d7bb525aedb9df5610351a8
treeb4378b8514265a91ba3a0b756caa9596c2e402e6
parent3f09728f908048ecff108e32d566aaf5d6ca315d
selftests/bpf: test_xsk: Don't exit immediately when workers fail

TX and RX workers can fail in many places. These failures trigger a call
to exit_with_error() which exits the program immediately. It prevents the
following tests from running and isn't compliant with the CI.

Add return value to functions that can fail.
Handle failures more smoothly through report_failure().

Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20251031-xsk-v7-11-39fe486593a3@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_xsk.c