Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 
0003 #include "vmlinux.h"
0004 
0005 #include <bpf/bpf_helpers.h>
0006 #include <bpf/bpf_tracing.h>
0007 
0008 char _license[] SEC("license") = "GPL";
0009 
0010 SEC("struct_ops/unsupp_cong_op_get_info")
0011 size_t BPF_PROG(unsupp_cong_op_get_info, struct sock *sk, u32 ext, int *attr,
0012         union tcp_cc_info *info)
0013 {
0014     return 0;
0015 }
0016 
0017 SEC(".struct_ops")
0018 struct tcp_congestion_ops unsupp_cong_op = {
0019     .get_info = (void *)unsupp_cong_op_get_info,
0020     .name = "bpf_unsupp_op",
0021 };