]> Gentwo Git Trees - linux/.git/commit
selftests/bpf: test_xsk: Don't exit immediately if validate_traffic fails
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Oct 2025 08:04:48 +0000 (09:04 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 Oct 2025 16:24:39 +0000 (09:24 -0700)
commit844b13a9ff547c927f496a47293c8f1739364e40
tree32b75d964aeb6a2ef4d464a6dd4fbef0c5a14224
parent5b2a757a16197dca5d7bb525aedb9df5610351a8
selftests/bpf: test_xsk: Don't exit immediately if validate_traffic fails

__testapp_validate_traffic() calls exit_with_error() on failures. This
exits the program immediately. It prevents the following tests from
running and isn't compliant with the CI.

Return TEST_FAILURE instead of calling exit_with_error().
Release the resource of the 1st thread if a failure happens between its
creation and the creation of the second thread.

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-12-39fe486593a3@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_xsk.c