]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Move some tc_helpers.h functions to test_progs.h
authorYonghong Song <yonghong.song@linux.dev>
Fri, 6 Jun 2025 16:31:51 +0000 (09:31 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 9 Jun 2025 23:28:30 +0000 (16:28 -0700)
commitc1bb68656bc18fd59bbd630fd1b5a86875b464b3
treea38184015a339e3ce0a9ac3bb517aeb09c76ca9c
parent1d6711667cb358fd2971c760a67b4fe843179d15
selftests/bpf: Move some tc_helpers.h functions to test_progs.h

Move static inline functions id_from_prog_fd() and id_from_link_fd()
from prog_tests/tc_helpers.h to test_progs.h so these two functions
can be reused for later cgroup mprog selftests.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250606163151.2429325-1-yonghong.song@linux.dev
tools/testing/selftests/bpf/prog_tests/tc_helpers.h
tools/testing/selftests/bpf/test_progs.h