Searched refs:sock_ops (Results 1 – 9 of 9) sorted by relevance
/linux/include/linux/ |
A D | bpf-cgroup.h | 174 struct bpf_sock_ops_kern *sock_ops, 355 #define BPF_CGROUP_RUN_PROG_SOCK_OPS_SK(sock_ops, sk) \ argument 360 sock_ops, \ 365 #define BPF_CGROUP_RUN_PROG_SOCK_OPS(sock_ops) \ argument 368 if (cgroup_bpf_enabled(CGROUP_SOCK_OPS) && (sock_ops)->sk) { \ 369 typeof(sk) __sk = sk_to_full_sk((sock_ops)->sk); \ 372 sock_ops, \ 517 #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 | 477 struct bpf_sock_ops_kern sock_ops; in bpf_skops_hdr_opt_len() local 506 sock_ops.sk = (struct sock *)req; in bpf_skops_hdr_opt_len() 507 sock_ops.syn_skb = syn_skb; in bpf_skops_hdr_opt_len() 511 sock_ops.is_fullsock = 1; in bpf_skops_hdr_opt_len() 512 sock_ops.sk = sk; in bpf_skops_hdr_opt_len() 519 bpf_skops_init_skb(&sock_ops, skb, 0); in bpf_skops_hdr_opt_len() 540 struct bpf_sock_ops_kern sock_ops; in bpf_skops_write_hdr_opt() local 551 sock_ops.sk = (struct sock *)req; in bpf_skops_write_hdr_opt() 552 sock_ops.syn_skb = syn_skb; in bpf_skops_write_hdr_opt() 556 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/tools/bpf/bpftool/Documentation/ |
A D | bpftool-cgroup.rst | 31 | *ATTACH_TYPE* := { **ingress** | **egress** | **sock_create** | **sock_ops** | **device** | 88 **sock_ops** various socket operations (since 4.12);
|
/linux/include/net/ |
A D | tcp.h | 2279 struct bpf_sock_ops_kern sock_ops; in tcp_call_bpf() local 2282 memset(&sock_ops, 0, offsetof(struct bpf_sock_ops_kern, temp)); in tcp_call_bpf() 2284 sock_ops.is_fullsock = 1; in tcp_call_bpf() 2288 sock_ops.sk = sk; in tcp_call_bpf() 2289 sock_ops.op = op; in tcp_call_bpf() 2291 memcpy(sock_ops.args, args, nargs * sizeof(*args)); in tcp_call_bpf() 2293 ret = BPF_CGROUP_RUN_PROG_SOCK_OPS(&sock_ops); in tcp_call_bpf() 2295 ret = sock_ops.reply; in tcp_call_bpf()
|
/linux/kernel/bpf/ |
A D | cgroup.c | 1183 struct bpf_sock_ops_kern *sock_ops, in __cgroup_bpf_run_filter_sock_ops() argument 1189 ret = BPF_PROG_RUN_ARRAY_CG(cgrp->bpf.effective[atype], sock_ops, in __cgroup_bpf_run_filter_sock_ops()
|
/linux/tools/bpf/bpftool/bash-completion/ |
A D | bpftool | 1026 sock_create sock_ops device \
|
Completed in 39 milliseconds