Searched refs:bpf_sock (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_sock.c | 51 offsetof(struct bpf_sock, src_ip6[0])), 68 offsetof(struct bpf_sock, mark)), 85 offsetof(struct bpf_sock, src_ip4)), 102 offsetof(struct bpf_sock, src_port)), 233 offsetof(struct bpf_sock, src_ip6[3])), 236 offsetof(struct bpf_sock, src_port)), 262 offsetof(struct bpf_sock, src_ip4)), 265 offsetof(struct bpf_sock, src_port)),
|
/Linux-v4.19/samples/bpf/ |
D | test_cgrp2_sock.c | 44 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)), in prog_load() 45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)), in prog_load() 62 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)), in prog_load() 63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), in prog_load() 70 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, priority)), in prog_load() 71 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, priority)), in prog_load()
|
D | sock_flags_kern.c | 9 int bpf_prog1(struct bpf_sock *sk) in bpf_prog1() 32 int bpf_prog2(struct bpf_sock *sk) in bpf_prog2()
|
/Linux-v4.19/net/core/ |
D | filter.c | 3893 BPF_CALL_5(bpf_setsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument 3896 struct sock *sk = bpf_sock->sk; in BPF_CALL_5() 3986 bool reinit = bpf_sock->op > BPF_SOCK_OPS_NEEDS_ECN; in BPF_CALL_5() 4038 BPF_CALL_5(bpf_getsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument 4041 struct sock *sk = bpf_sock->sk; in BPF_CALL_5() 4109 BPF_CALL_2(bpf_sock_ops_cb_flags_set, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_2() argument 4112 struct sock *sk = bpf_sock->sk; in BPF_CALL_2() 5301 case offsetof(struct bpf_sock, bound_dev_if): in __sock_filter_check_attach_type() 5302 case offsetof(struct bpf_sock, mark): in __sock_filter_check_attach_type() 5303 case offsetof(struct bpf_sock, priority): in __sock_filter_check_attach_type() [all …]
|
/Linux-v4.19/kernel/bpf/ |
D | sockmap.c | 2587 BPF_CALL_4(bpf_sock_map_update, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_4() argument 2596 if (!bpf_is_valid_sock_op(bpf_sock)) in BPF_CALL_4() 2598 return sock_map_ctx_update_elem(bpf_sock, map, key, flags); in BPF_CALL_4() 2612 BPF_CALL_4(bpf_sock_hash_update, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_4() argument 2617 if (!bpf_is_valid_sock_op(bpf_sock)) in BPF_CALL_4() 2619 return sock_hash_ctx_update_elem(bpf_sock, map, key, flags); in BPF_CALL_4()
|
/Linux-v4.19/tools/include/uapi/linux/ |
D | bpf.h | 2380 struct bpf_sock { struct
|
/Linux-v4.19/include/uapi/linux/ |
D | bpf.h | 2380 struct bpf_sock { struct
|