]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: test_xsk: Add return value to init_iface()
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Oct 2025 08:04:44 +0000 (09:04 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 Oct 2025 16:24:38 +0000 (09:24 -0700)
commite645bcfb16ea5d63fab177d5b5adde2431c91e53
tree43576ad253bff3a9eef806370006af1a40d39ed6
parentf477b0fd75f5e83ceccc166bf53a22641adeb853
selftests/bpf: test_xsk: Add return value to init_iface()

init_iface() doesn't have any return value while it can fail. In case of
failure it calls exit_on_error() which exits the application
immediately. This prevents the following tests from being run and isn't
compliant with the CI

Add a return value to init_iface() so errors can be handled more
smoothly.

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