selftests/bpf: Remove bpf_tracing_net.h usages from two networking tests
authorMartin KaFai Lau <martin.lau@kernel.org>
Thu, 9 May 2024 17:50:17 +0000 (10:50 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 May 2024 18:13:11 +0000 (11:13 -0700)
commitc0338e609e6e8aff8a7052c90cff83a6bc792ebc
treecc617e77d1df9e0cced592a750948baec8462ad2
parent009367099eb61a4fc2af44d4eb06b6b4de7de6db
selftests/bpf: Remove bpf_tracing_net.h usages from two networking tests

This patch removes the bpf_tracing_net.h usage from the networking tests,
fib_lookup and test_lwt_redirect. Instead of using the (copied) macro
TC_ACT_SHOT and ETH_HLEN from bpf_tracing_net.h, they can directly
use the ones defined in the network header files under linux/.

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20240509175026.3423614-2-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/fib_lookup.c
tools/testing/selftests/bpf/progs/test_lwt_redirect.c