Home
last modified time | relevance | path

Searched refs:sk_msg (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/include/linux/
Dskmsg.h40 struct sk_msg { struct
87 struct sk_msg *cork;
108 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len,
110 int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src,
112 void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len);
113 int sk_msg_free(struct sock *sk, struct sk_msg *msg);
114 int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg);
115 void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes);
116 void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg,
119 void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes);
[all …]
Dbpf_types.h20 BPF_PROG_TYPE(BPF_PROG_TYPE_SK_MSG, sk_msg)
/Linux-v5.4/net/core/
Dskmsg.c11 static bool sk_msg_try_coalesce_ok(struct sk_msg *msg, int elem_first_coalesce) in sk_msg_try_coalesce_ok()
25 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, in sk_msg_alloc()
76 int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src, in sk_msg_clone()
127 void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes) in sk_msg_return_zero()
151 void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes) in sk_msg_return()
166 static int sk_msg_free_elem(struct sock *sk, struct sk_msg *msg, u32 i, in sk_msg_free_elem()
180 static int __sk_msg_free(struct sock *sk, struct sk_msg *msg, u32 i, in __sk_msg_free()
198 int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg) in sk_msg_free_nocharge()
204 int sk_msg_free(struct sock *sk, struct sk_msg *msg) in sk_msg_free()
210 static void __sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, in __sk_msg_free_partial()
[all …]
Dfilter.c2190 BPF_CALL_2(bpf_msg_apply_bytes, struct sk_msg *, msg, u32, bytes) in BPF_CALL_2() argument
2204 BPF_CALL_2(bpf_msg_cork_bytes, struct sk_msg *, msg, u32, bytes) in BPF_CALL_2() argument
2218 BPF_CALL_4(bpf_msg_pull_data, struct sk_msg *, msg, u32, start, in BPF_CALL_4() argument
2344 BPF_CALL_4(bpf_msg_push_data, struct sk_msg *, msg, u32, start, in BPF_CALL_4() argument
2475 static void sk_msg_shift_left(struct sk_msg *msg, int i) in sk_msg_shift_left()
2488 static void sk_msg_shift_right(struct sk_msg *msg, int i) in sk_msg_shift_right()
2505 BPF_CALL_4(bpf_msg_pop_data, struct sk_msg *, msg, u32, start, in BPF_CALL_4() argument
8342 BUILD_BUG_ON(offsetof(struct sk_msg, sg) != 0); in sk_msg_convert_ctx_access()
8346 *insn++ = BPF_LDX_MEM(BPF_FIELD_SIZEOF(struct sk_msg, data), in sk_msg_convert_ctx_access()
8348 offsetof(struct sk_msg, data)); in sk_msg_convert_ctx_access()
[all …]
Dsock_map.c477 BPF_CALL_4(bpf_msg_redirect_map, struct sk_msg *, msg, in BPF_CALL_4() argument
926 BPF_CALL_4(bpf_msg_redirect_hash, struct sk_msg *, msg, in BPF_CALL_4() argument
/Linux-v5.4/net/ipv4/
Dtcp_bpf.c51 struct sk_msg *msg_rx; in __tcp_bpf_recvmsg()
54 struct sk_msg, list); in __tcp_bpf_recvmsg()
111 struct sk_msg, list); in __tcp_bpf_recvmsg()
162 struct sk_msg *msg, u32 apply_bytes, int flags) in bpf_tcp_ingress()
167 struct sk_msg *tmp; in bpf_tcp_ingress()
215 static int tcp_bpf_push(struct sock *sk, struct sk_msg *msg, u32 apply_bytes, in tcp_bpf_push()
272 static int tcp_bpf_push_locked(struct sock *sk, struct sk_msg *msg, in tcp_bpf_push_locked()
283 int tcp_bpf_sendmsg_redir(struct sock *sk, struct sk_msg *msg, in tcp_bpf_sendmsg_redir()
302 struct sk_msg *msg, int *copied, int flags) in tcp_bpf_send_verdict()
400 struct sk_msg tmp, *msg_tx = NULL; in tcp_bpf_sendmsg()
[all …]
/Linux-v5.4/net/tls/
Dtls_sw.c282 struct sk_msg *msg_en = &rec->msg_encrypted; in tls_alloc_encrypted_msg()
293 struct sk_msg *msg_pl = &rec->msg_plaintext; in tls_clone_plaintext_msg()
294 struct sk_msg *msg_en = &rec->msg_encrypted; in tls_clone_plaintext_msg()
316 struct sk_msg *msg_pl, *msg_en; in tls_get_rec()
367 struct sk_msg *msg_en; in tls_tx_records()
429 struct sk_msg *msg_en; in tls_encrypt_done()
488 struct sk_msg *msg_en = &rec->msg_encrypted; in tls_do_encryption()
542 struct tls_rec **to, struct sk_msg *msg_opl, in tls_split_open_record()
543 struct sk_msg *msg_oen, u32 split_point, in tls_split_open_record()
550 struct sk_msg *msg_npl; in tls_split_open_record()
[all …]
/Linux-v5.4/include/net/
Dtls.h127 struct sk_msg msg_plaintext;
128 struct sk_msg msg_encrypted;
Dtcp.h2145 struct sk_msg;
2150 int tcp_bpf_sendmsg_redir(struct sock *sk, struct sk_msg *msg, u32 bytes,
/Linux-v5.4/tools/bpf/bpftool/Documentation/
Dbpftool-prog.rst41 | **lwt_seg6local** | **sockops** | **sk_skb** | **sk_msg** | **lirc_mode2** |
/Linux-v5.4/tools/bpf/bpftool/bash-completion/
Dbpftool387 lwt_seg6local sockops sk_skb sk_msg \