selftests/bpf: Use bpf_tracing_net.h in bpf_dctcp
authorMartin KaFai Lau <martin.lau@kernel.org>
Thu, 9 May 2024 17:50:23 +0000 (10:50 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 May 2024 18:13:12 +0000 (11:13 -0700)
commit6ad4e6e94697e960630594907666bc09e78a3b8a
treefd907e0e3e4a3bcef07fe49307fbe1885ec57535
parenta824c9a8a4d9a654d62674a8425c0f1abc9c3d33
selftests/bpf: Use bpf_tracing_net.h in bpf_dctcp

This patch uses bpf_tracing_net.h (i.e. vmlinux.h) in bpf_dctcp.
This will allow to retire the bpf_tcp_helpers.h and consolidate
tcp-cc tests to vmlinux.h.

It will have a dup on min/max macros with the bpf_cubic. It could
be further refactored in the future.

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