Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Remove bpf_tcp_helpers.h usages from other misc bpf tcp-cc tests

This patch removed the final few bpf_tcp_helpers.h usages
in some misc bpf tcp-cc tests and replace it with
bpf_tracing_net.h (i.e. vmlinux.h)

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20240509175026.3423614-9-martin.lau@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Martin KaFai Lau and committed by
Alexei Starovoitov
6eee55aa 6ad4e6e9

+2 -10
+1 -6
tools/testing/selftests/bpf/progs/bpf_dctcp_release.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 /* Copyright (c) 2021 Facebook */ 3 3 4 - #include <stddef.h> 5 - #include <linux/bpf.h> 6 - #include <linux/types.h> 7 - #include <linux/stddef.h> 8 - #include <linux/tcp.h> 4 + #include "bpf_tracing_net.h" 9 5 #include <bpf/bpf_helpers.h> 10 6 #include <bpf/bpf_tracing.h> 11 - #include "bpf_tcp_helpers.h" 12 7 13 8 char _license[] SEC("license") = "GPL"; 14 9 const char cubic[] = "cubic";
+1 -4
tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 3 - #include <linux/bpf.h> 4 - #include <linux/types.h> 5 - #include <bpf/bpf_helpers.h> 3 + #include "bpf_tracing_net.h" 6 4 #include <bpf/bpf_tracing.h> 7 - #include "bpf_tcp_helpers.h" 8 5 9 6 char _license[] SEC("license") = "X"; 10 7