Home
last modified time | relevance | path

Searched refs:apply_bytes (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/net/ipv4/
Dtcp_bpf.c162 struct sk_msg *msg, u32 apply_bytes, int flags) in bpf_tcp_ingress() argument
164 bool apply = apply_bytes; in bpf_tcp_ingress()
179 size = (apply && apply_bytes < sge->length) ? in bpf_tcp_ingress()
180 apply_bytes : sge->length; in bpf_tcp_ingress()
195 apply_bytes -= size; in bpf_tcp_ingress()
196 if (!apply_bytes) in bpf_tcp_ingress()
203 msg->sg.size -= apply_bytes; in bpf_tcp_ingress()
215 static int tcp_bpf_push(struct sock *sk, struct sk_msg *msg, u32 apply_bytes, in tcp_bpf_push() argument
218 bool apply = apply_bytes; in tcp_bpf_push()
228 size = (apply && apply_bytes < sge->length) ? in tcp_bpf_push()
[all …]
/Linux-v5.4/include/linux/
Dskmsg.h44 u32 apply_bytes; member
84 u32 apply_bytes; member
134 if (psock->apply_bytes) { in sk_msg_apply_bytes()
135 if (psock->apply_bytes < bytes) in sk_msg_apply_bytes()
136 psock->apply_bytes = 0; in sk_msg_apply_bytes()
138 psock->apply_bytes -= bytes; in sk_msg_apply_bytes()
/Linux-v5.4/net/tls/
Dtls_sw.c546 u32 i, j, bytes = 0, apply = msg_opl->apply_bytes; in tls_split_open_record()
591 msg_opl->apply_bytes = 0; in tls_split_open_record()
595 msg_npl->apply_bytes = apply; in tls_split_open_record()
650 msg_opl->apply_bytes = msg_opl->sg.size + msg_npl->sg.size; in tls_merge_open_record()
678 split_point = msg_pl->apply_bytes; in tls_push_record()
788 if (msg->apply_bytes && msg->apply_bytes < send) in bpf_exec_tx_verdict()
789 send = msg->apply_bytes; in bpf_exec_tx_verdict()
803 if (msg->apply_bytes < send) in bpf_exec_tx_verdict()
804 msg->apply_bytes = 0; in bpf_exec_tx_verdict()
806 msg->apply_bytes -= send; in bpf_exec_tx_verdict()
[all …]
/Linux-v5.4/net/core/
Dskmsg.c643 psock->apply_bytes = msg->apply_bytes; in sk_psock_msg_verdict()
Dfilter.c2192 msg->apply_bytes = bytes; in BPF_CALL_2()