Lines Matching refs:msg_pl

304 	struct sk_msg *msg_pl = &rec->msg_plaintext;  in tls_clone_plaintext_msg()  local
312 len = required - msg_pl->sg.size; in tls_clone_plaintext_msg()
317 skip = prot->prepend_size + msg_pl->sg.size; in tls_clone_plaintext_msg()
319 return sk_msg_clone(sk, msg_pl, msg_en, skip, len); in tls_clone_plaintext_msg()
327 struct sk_msg *msg_pl, *msg_en; in tls_get_rec() local
337 msg_pl = &rec->msg_plaintext; in tls_get_rec()
340 sk_msg_init(msg_pl); in tls_get_rec()
692 struct sk_msg *msg_pl, *msg_en; in tls_push_record() local
700 msg_pl = &rec->msg_plaintext; in tls_push_record()
703 split_point = msg_pl->apply_bytes; in tls_push_record()
704 split = split_point && split_point < msg_pl->sg.size; in tls_push_record()
706 msg_pl->sg.size + in tls_push_record()
715 rc = tls_split_open_record(sk, rec, &tmp, msg_pl, msg_en, in tls_push_record()
725 if (!msg_pl->sg.size) { in tls_push_record()
727 msg_pl = &rec->msg_plaintext; in tls_push_record()
731 sk_msg_trim(sk, msg_en, msg_pl->sg.size + in tls_push_record()
738 i = msg_pl->sg.end; in tls_push_record()
746 sg_chain(msg_pl->sg.data, msg_pl->sg.end + 1, in tls_push_record()
749 sg_mark_end(sk_msg_elem(msg_pl, i)); in tls_push_record()
752 if (msg_pl->sg.end < msg_pl->sg.start) { in tls_push_record()
753 sg_chain(&msg_pl->sg.data[msg_pl->sg.start], in tls_push_record()
754 MAX_SKB_FRAGS - msg_pl->sg.start + 1, in tls_push_record()
755 msg_pl->sg.data); in tls_push_record()
758 i = msg_pl->sg.start; in tls_push_record()
759 sg_chain(rec->sg_aead_in, 2, &msg_pl->sg.data[i]); in tls_push_record()
768 tls_make_aad(rec->aad_space, msg_pl->sg.size + prot->tail_size, in tls_push_record()
774 msg_pl->sg.size + prot->tail_size, in tls_push_record()
780 msg_pl->sg.size + prot->tail_size, i); in tls_push_record()
792 msg_pl = &tmp->msg_plaintext; in tls_push_record()
794 sk_msg_trim(sk, msg_en, msg_pl->sg.size + prot->overhead_size); in tls_push_record()
919 struct sk_msg *msg_pl; in tls_sw_push_pending_record() local
925 msg_pl = &rec->msg_plaintext; in tls_sw_push_pending_record()
926 copied = msg_pl->sg.size; in tls_sw_push_pending_record()
930 return bpf_exec_tx_verdict(msg_pl, sk, true, TLS_RECORD_TYPE_DATA, in tls_sw_push_pending_record()
935 struct sk_msg *msg_pl, size_t try_to_copy, in tls_sw_sendmsg_splice() argument
954 sk_msg_page_add(msg_pl, page, part, off); in tls_sw_sendmsg_splice()
958 } while (try_to_copy && !sk_msg_full(msg_pl)); in tls_sw_sendmsg_splice()
976 struct sk_msg *msg_pl, *msg_en; in tls_sw_sendmsg_locked() local
1015 msg_pl = &rec->msg_plaintext; in tls_sw_sendmsg_locked()
1018 orig_size = msg_pl->sg.size; in tls_sw_sendmsg_locked()
1021 record_room = TLS_MAX_PAYLOAD_SIZE - msg_pl->sg.size; in tls_sw_sendmsg_locked()
1027 required_size = msg_pl->sg.size + try_to_copy + in tls_sw_sendmsg_locked()
1048 ret = tls_sw_sendmsg_splice(sk, msg, msg_pl, in tls_sw_sendmsg_locked()
1053 if (full_record || eor || sk_msg_full(msg_pl)) in tls_sw_sendmsg_locked()
1059 u32 first = msg_pl->sg.end; in tls_sw_sendmsg_locked()
1062 msg_pl, try_to_copy); in tls_sw_sendmsg_locked()
1069 sk_msg_sg_copy_set(msg_pl, first); in tls_sw_sendmsg_locked()
1070 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_sendmsg_locked()
1086 sk_msg_sg_copy_clear(msg_pl, first); in tls_sw_sendmsg_locked()
1088 msg_pl->sg.size - orig_size); in tls_sw_sendmsg_locked()
1090 sk_msg_trim(sk, msg_pl, orig_size); in tls_sw_sendmsg_locked()
1093 required_size = msg_pl->sg.size + try_to_copy; in tls_sw_sendmsg_locked()
1104 try_to_copy -= required_size - msg_pl->sg.size; in tls_sw_sendmsg_locked()
1107 msg_pl->sg.size + prot->overhead_size); in tls_sw_sendmsg_locked()
1112 msg_pl, try_to_copy); in tls_sw_sendmsg_locked()
1124 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_sendmsg_locked()
1222 struct sk_msg *msg_pl; in tls_sw_splice_eof() local
1239 msg_pl = &rec->msg_plaintext; in tls_sw_splice_eof()
1242 ret = bpf_exec_tx_verdict(msg_pl, sk, false, TLS_RECORD_TYPE_DATA, in tls_sw_splice_eof()