Lines Matching refs:apply_bytes
162 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()
229 apply_bytes : sge->length; in tcp_bpf_push()
247 apply_bytes -= ret; in tcp_bpf_push()
265 if (apply && !apply_bytes) in tcp_bpf_push()
273 u32 apply_bytes, int flags, bool uncharge) in tcp_bpf_push_locked() argument
278 ret = tcp_bpf_push(sk, msg, apply_bytes, flags, uncharge); in tcp_bpf_push_locked()
338 if (psock->apply_bytes && psock->apply_bytes < tosend) in tcp_bpf_send_verdict()
339 tosend = psock->apply_bytes; in tcp_bpf_send_verdict()
383 if (!psock->apply_bytes) { in tcp_bpf_send_verdict()