summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>2025-10-31 11:04:43 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-10-31 19:24:38 +0300
commitf477b0fd75f5e83ceccc166bf53a22641adeb853 (patch)
tree76a3243a30cc8bc5dd428de523aeb1ec7487f665 /tools/perf/scripts/python
parente3dfa0faf1f7f4a1fbead808fdc67f276b8a4b50 (diff)
downloadlinux-f477b0fd75f5e83ceccc166bf53a22641adeb853.tar.xz
selftests/bpf: test_xsk: Release resources when swap fails
testapp_validate_traffic() doesn't release the sockets and the umem created by the threads if the test isn't currently in its last step. Thus, if the swap_xsk_resources() fails before the last step, the created resources aren't cleaned up. Clean the sockets and the umem in case of swap_xsk_resources() 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-7-39fe486593a3@bootlin.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions