Home
last modified time | relevance | path

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

/linux/net/ipv4/
H A Dtcp_bpf.c34 struct sk_msg *msg, u32 apply_bytes) in bpf_tcp_ingress() argument
36 bool apply = apply_bytes; in bpf_tcp_ingress()
51 size = (apply && apply_bytes < sge->length) ? in bpf_tcp_ingress()
52 apply_bytes : sge->length; in bpf_tcp_ingress()
68 apply_bytes -= size; in bpf_tcp_ingress()
69 if (!apply_bytes) { in bpf_tcp_ingress()
91 static int tcp_bpf_push(struct sock *sk, struct sk_msg *msg, u32 apply_bytes, in tcp_bpf_push() argument
95 bool apply = apply_bytes; in tcp_bpf_push()
106 size = (apply && apply_bytes < sge->length) ? in tcp_bpf_push()
107 apply_bytes : sge->length; in tcp_bpf_push()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sockmap_ktls.c9 int apply_bytes; variable
38 bpf_msg_apply_bytes(msg, apply_bytes); in prog_sk_policy_redir()
/linux/include/linux/
H A Dskmsg.h47 u32 apply_bytes; member
86 u32 apply_bytes; member
157 if (psock->apply_bytes) { in sk_msg_apply_bytes()
158 if (psock->apply_bytes < bytes) in sk_msg_apply_bytes()
159 psock->apply_bytes = 0; in sk_msg_apply_bytes()
161 psock->apply_bytes -= bytes; in sk_msg_apply_bytes()
/linux/net/tls/
H A Dtls_sw.c611 u32 i, j, bytes = 0, apply = msg_opl->apply_bytes; in tls_split_open_record()
656 msg_opl->apply_bytes = 0; in tls_split_open_record()
660 msg_npl->apply_bytes = apply; in tls_split_open_record()
715 msg_opl->apply_bytes = msg_opl->sg.size + msg_npl->sg.size; in tls_merge_open_record()
743 split_point = msg_pl->apply_bytes; in tls_push_record()
896 if (msg->apply_bytes && msg->apply_bytes < send) in bpf_exec_tx_verdict()
897 send = msg->apply_bytes; in bpf_exec_tx_verdict()
913 if (msg->apply_bytes < send) in bpf_exec_tx_verdict()
914 msg->apply_bytes = 0; in bpf_exec_tx_verdict()
916 msg->apply_bytes -= send; in bpf_exec_tx_verdict()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_ktls.c283 skel->bss->apply_bytes = 1024; in test_sockmap_ktls_tx_no_buf()
/linux/net/core/
H A Dskmsg.c937 psock->apply_bytes = msg->apply_bytes; in sk_psock_msg_verdict()
H A Dfilter.c2621 msg->apply_bytes = bytes; in BPF_CALL_2()