selftests/bpf: Do not unload bpf_testmod in load_bpf_testmod
authorJiri Olsa <jolsa@kernel.org>
Mon, 15 May 2023 13:37:51 +0000 (15:37 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 17 May 2023 05:09:23 +0000 (22:09 -0700)
commitb58f3f0e6f3cbea56be39d8fb190b37f049505bb
tree3689d3ba9e7068323adffa06185f91bae3a19672
parentd18decca69e36480247a73086336f4a44a08e36f
selftests/bpf: Do not unload bpf_testmod in load_bpf_testmod

Do not unload bpf_testmod in load_bpf_testmod, instead call
unload_bpf_testmod separatelly.

This way we will be able use un/load_bpf_testmod functions
in other tests that un/load bpf_testmod module.

Acked-by: David Vernet <void@manifault.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230515133756.1658301-6-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/testing_helpers.c