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>
17 lines
346 B
C
17 lines
346 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include "bpf_tracing_net.h"
|
|
#include <bpf/bpf_tracing.h>
|
|
|
|
char _license[] SEC("license") = "X";
|
|
|
|
SEC("struct_ops")
|
|
void BPF_PROG(nogpltcp_init, struct sock *sk)
|
|
{
|
|
}
|
|
|
|
SEC(".struct_ops")
|
|
struct tcp_congestion_ops bpf_nogpltcp = {
|
|
.init = (void *)nogpltcp_init,
|
|
.name = "bpf_nogpltcp",
|
|
};
|