selftests/bpf: Refactor out helper functions for a few tests
authorYonghong Song <yonghong.song@linux.dev>
Wed, 10 Apr 2024 04:35:42 +0000 (21:35 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 11 Apr 2024 02:52:25 +0000 (19:52 -0700)
commita15d58b2bc82abd8c4c994af158b0410424a18d3
treef5ccabb7cd293ca28b2663bed8ca11e0894ca8a6
parent1f3e2091d25b2b140967480177fcaee2f0eebfb1
selftests/bpf: Refactor out helper functions for a few tests

These helper functions will be used later new tests as well.
There are no functionality change.

Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240410043542.3738166-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
tools/testing/selftests/bpf/progs/test_skmsg_load_helpers.c