diff options
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c')
-rw-r--r-- | tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c b/tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c new file mode 100644 index 000000000000..8a7a4c1b54e8 --- /dev/null +++ b/tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c @@ -0,0 +1,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", +}; |