Searched refs:sock_ops (Results 1 – 9 of 9) sorted by relevance
/linux-6.3-rc2/include/linux/ |
A D | bpf-cgroup.h | 128 struct bpf_sock_ops_kern *sock_ops, 318 #define BPF_CGROUP_RUN_PROG_SOCK_OPS_SK(sock_ops, sk) \ argument 323 sock_ops, \ 328 #define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) \ argument 331 if (cgroup_bpf_enabled(CGROUP_SOCK_OPS) && (sock_ops)->sk) { \ 332 typeof(sk) __sk = sk_to_full_sk((sock_ops)->sk); \ 335 sock_ops, \ 498 #define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) ({ 0; }) argument
|
A D | bpf_types.h | 29 BPF_PROG_TYPE(BPF_PROG_TYPE_SOCK_OPS, sock_ops,
|
/linux-6.3-rc2/samples/bpf/ |
A D | tcp_bpf.readme | 15 bpftool cgroup attach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog 28 bpftool cgroup detach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog
|
/linux-6.3-rc2/net/ipv4/ |
A D | tcp_output.c | 476 struct bpf_sock_ops_kern sock_ops; in bpf_skops_hdr_opt_len() local 505 sock_ops.sk = (struct sock *)req; in bpf_skops_hdr_opt_len() 506 sock_ops.syn_skb = syn_skb; in bpf_skops_hdr_opt_len() 510 sock_ops.is_fullsock = 1; in bpf_skops_hdr_opt_len() 511 sock_ops.sk = sk; in bpf_skops_hdr_opt_len() 518 bpf_skops_init_skb(&sock_ops, skb, 0); in bpf_skops_hdr_opt_len() 539 struct bpf_sock_ops_kern sock_ops; in bpf_skops_write_hdr_opt() local 550 sock_ops.sk = (struct sock *)req; in bpf_skops_write_hdr_opt() 551 sock_ops.syn_skb = syn_skb; in bpf_skops_write_hdr_opt() 555 sock_ops.is_fullsock = 1; in bpf_skops_write_hdr_opt() [all …]
|
A D | tcp_input.c | 150 struct bpf_sock_ops_kern sock_ops; in bpf_skops_parse_hdr() local 169 sock_ops.op = BPF_SOCK_OPS_PARSE_HDR_OPT_CB; in bpf_skops_parse_hdr() 170 sock_ops.is_fullsock = 1; in bpf_skops_parse_hdr() 171 sock_ops.sk = sk; in bpf_skops_parse_hdr() 172 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_parse_hdr() 174 BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in bpf_skops_parse_hdr() 180 struct bpf_sock_ops_kern sock_ops; in bpf_skops_established() local 185 sock_ops.op = bpf_op; in bpf_skops_established() 186 sock_ops.is_fullsock = 1; in bpf_skops_established() 187 sock_ops.sk = sk; in bpf_skops_established() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | cgroup_getset_retval_hooks.h | 6 BPF_RETVAL_HOOK(sock_ops, "sockops", bpf_sock_ops, -EINVAL)
|
/linux-6.3-rc2/include/net/ |
A D | tcp.h | 2360 struct bpf_sock_ops_kern sock_ops; in tcp_call_bpf() local 2363 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in tcp_call_bpf() 2365 sock_ops.is_fullsock = 1; in tcp_call_bpf() 2369 sock_ops.sk = sk; in tcp_call_bpf() 2370 sock_ops.op = op; in tcp_call_bpf() 2372 memcpy(sock_ops.args, args, nargs * sizeof(*args)); in tcp_call_bpf() 2374 ret = BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in tcp_call_bpf() 2376 ret = sock_ops.reply; in tcp_call_bpf()
|
/linux-6.3-rc2/tools/bpf/bpftool/Documentation/ |
A D | bpftool-cgroup.rst | 97 **sock_ops** various socket operations (since 4.12);
|
/linux-6.3-rc2/kernel/bpf/ |
A D | cgroup.c | 1510 struct bpf_sock_ops_kern *sock_ops, in __cgroup_bpf_run_filter_sock_ops() argument 1515 return bpf_prog_run_array_cg(&cgrp->bpf, atype, sock_ops, bpf_prog_run, in __cgroup_bpf_run_filter_sock_ops()
|
Completed in 41 milliseconds