Lines Matching refs:apply_bytes
113 int apply_bytes; member
473 static int bpf_tcp_push(struct sock *sk, int apply_bytes, in bpf_tcp_push() argument
477 bool apply = apply_bytes; in bpf_tcp_push()
485 size = (apply && apply_bytes < sg->length) ? in bpf_tcp_push()
486 apply_bytes : sg->length; in bpf_tcp_push()
496 apply_bytes -= ret; in bpf_tcp_push()
511 apply_bytes -= ret; in bpf_tcp_push()
528 if (apply && !apply_bytes) in bpf_tcp_push()
661 psock->apply_bytes = md->apply_bytes; in smap_do_tx_msg()
688 static int bpf_tcp_ingress(struct sock *sk, int apply_bytes, in bpf_tcp_ingress() argument
692 bool apply = apply_bytes; in bpf_tcp_ingress()
706 size = (apply && apply_bytes < md->sg_data[i].length) ? in bpf_tcp_ingress()
707 apply_bytes : md->sg_data[i].length; in bpf_tcp_ingress()
733 apply_bytes -= size; in bpf_tcp_ingress()
734 if (!apply_bytes) in bpf_tcp_ingress()
787 if (!psock->apply_bytes) { in bpf_md_init()
798 if (psock->apply_bytes) { in apply_bytes_dec()
799 if (psock->apply_bytes < i) in apply_bytes_dec()
800 psock->apply_bytes = 0; in apply_bytes_dec()
802 psock->apply_bytes -= i; in apply_bytes_dec()
838 if (psock->apply_bytes && psock->apply_bytes < send) in bpf_exec_tx_verdict()
839 send = psock->apply_bytes; in bpf_exec_tx_verdict()