Searched refs:sock_ops (Results 1 – 10 of 10) sorted by relevance
| /linux/include/linux/ |
| A D | bpf-cgroup.h | 134 struct bpf_sock_ops_kern *sock_ops, 335 #define BPF_CGROUP_RUN_PROG_SOCK_OPS_SK(sock_ops, sk) \ argument 340 sock_ops, \ 345 #define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) \ argument 348 if (cgroup_bpf_enabled(CGROUP_SOCK_OPS) && (sock_ops)->sk) { \ 349 typeof(sk) __sk = sk_to_full_sk((sock_ops)->sk); \ 352 sock_ops, \ 510 #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/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/net/ipv4/ |
| A D | tcp_output.c | 490 struct bpf_sock_ops_kern sock_ops; in bpf_skops_hdr_opt_len() local 519 sock_ops.sk = (struct sock *)req; in bpf_skops_hdr_opt_len() 520 sock_ops.syn_skb = syn_skb; in bpf_skops_hdr_opt_len() 524 sock_ops.is_fullsock = 1; in bpf_skops_hdr_opt_len() 525 sock_ops.sk = sk; in bpf_skops_hdr_opt_len() 532 bpf_skops_init_skb(&sock_ops, skb, 0); in bpf_skops_hdr_opt_len() 553 struct bpf_sock_ops_kern sock_ops; in bpf_skops_write_hdr_opt() local 564 sock_ops.sk = (struct sock *)req; in bpf_skops_write_hdr_opt() 565 sock_ops.syn_skb = syn_skb; in bpf_skops_write_hdr_opt() 569 sock_ops.is_fullsock = 1; in bpf_skops_write_hdr_opt() [all …]
|
| A D | tcp_input.c | 151 struct bpf_sock_ops_kern sock_ops; in bpf_skops_parse_hdr() local 170 sock_ops.op = BPF_SOCK_OPS_PARSE_HDR_OPT_CB; in bpf_skops_parse_hdr() 171 sock_ops.is_fullsock = 1; in bpf_skops_parse_hdr() 172 sock_ops.sk = sk; in bpf_skops_parse_hdr() 173 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_parse_hdr() 175 BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in bpf_skops_parse_hdr() 181 struct bpf_sock_ops_kern sock_ops; in bpf_skops_established() local 186 sock_ops.op = bpf_op; in bpf_skops_established() 187 sock_ops.is_fullsock = 1; in bpf_skops_established() 188 sock_ops.sk = sk; in bpf_skops_established() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| A D | cgroup_getset_retval_hooks.h | 6 BPF_RETVAL_HOOK(sock_ops, "sockops", bpf_sock_ops, -EINVAL)
|
| /linux/include/net/ |
| A D | tcp.h | 2642 struct bpf_sock_ops_kern sock_ops; in tcp_call_bpf() local 2645 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in tcp_call_bpf() 2647 sock_ops.is_fullsock = 1; in tcp_call_bpf() 2651 sock_ops.sk = sk; in tcp_call_bpf() 2652 sock_ops.op = op; in tcp_call_bpf() 2654 memcpy(sock_ops.args, args, nargs * sizeof(*args)); in tcp_call_bpf() 2656 ret = BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in tcp_call_bpf() 2658 ret = sock_ops.reply; in tcp_call_bpf()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | sock_addr.c | 280 struct sock_ops { struct 319 struct sock_ops user_ops = { 330 struct sock_ops kern_ops_sock_sendmsg = { 341 struct sock_ops kern_ops_kernel_sendmsg = { 360 struct sock_ops *ops;
|
| /linux/tools/bpf/bpftool/Documentation/ |
| A D | bpftool-cgroup.rst | 98 - **sock_ops** various socket operations (since 4.12)
|
| /linux/kernel/bpf/ |
| A D | cgroup.c | 1539 struct bpf_sock_ops_kern *sock_ops, in __cgroup_bpf_run_filter_sock_ops() argument 1544 return bpf_prog_run_array_cg(&cgrp->bpf, atype, sock_ops, bpf_prog_run, in __cgroup_bpf_run_filter_sock_ops()
|
Completed in 60 milliseconds