Home
last modified time | relevance | path

Searched refs:sock_ops (Results 1 – 3 of 3) sorted by relevance

/linux-4.19.296/include/linux/
Dbpf-cgroup.h98 struct bpf_sock_ops_kern *sock_ops,
219 #define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) \ argument
222 if (cgroup_bpf_enabled && (sock_ops)->sk) { \
223 typeof(sk) __sk = sk_to_full_sk((sock_ops)->sk); \
226 sock_ops, \
301 #define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) ({ 0; }) argument
Dbpf_types.h16 BPF_PROG_TYPE(BPF_PROG_TYPE_SOCK_OPS, sock_ops)
/linux-4.19.296/include/net/
Dtcp.h2140 struct bpf_sock_ops_kern sock_ops; in tcp_call_bpf() local
2143 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in tcp_call_bpf()
2145 sock_ops.is_fullsock = 1; in tcp_call_bpf()
2149 sock_ops.sk = sk; in tcp_call_bpf()
2150 sock_ops.op = op; in tcp_call_bpf()
2152 memcpy(sock_ops.args, args, nargs * sizeof(*args)); in tcp_call_bpf()
2154 ret = BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in tcp_call_bpf()
2156 ret = sock_ops.reply; in tcp_call_bpf()