summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c
blob: 8a7a4c1b54e883cd9fe5d4ffabd95dbccd27747c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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",
};