1 // SPDX-License-Identifier: GPL-2.0
2
3 #include "vmlinux.h"
4
5 #include <bpf/bpf_helpers.h>
6 #include <bpf/bpf_tracing.h>
7
8 char _license[] SEC("license") = "GPL";
9
10 SEC("struct_ops/unsupp_cong_op_get_info")
BPF_PROG(unsupp_cong_op_get_info,struct sock * sk,u32 ext,int * attr,union tcp_cc_info * info)11 size_t BPF_PROG(unsupp_cong_op_get_info, struct sock *sk, u32 ext, int *attr,
12 union tcp_cc_info *info)
13 {
14 return 0;
15 }
16
17 SEC(".struct_ops")
18 struct tcp_congestion_ops unsupp_cong_op = {
19 .get_info = (void *)unsupp_cong_op_get_info,
20 .name = "bpf_unsupp_op",
21 };
22