Lines Matching refs:msg_pl

298 	struct sk_msg *msg_pl = &rec->msg_plaintext;  in tls_clone_plaintext_msg()  local
306 len = required - msg_pl->sg.size; in tls_clone_plaintext_msg()
311 skip = prot->prepend_size + msg_pl->sg.size; in tls_clone_plaintext_msg()
313 return sk_msg_clone(sk, msg_pl, msg_en, skip, len); in tls_clone_plaintext_msg()
321 struct sk_msg *msg_pl, *msg_en; in tls_get_rec() local
331 msg_pl = &rec->msg_plaintext; in tls_get_rec()
334 sk_msg_init(msg_pl); in tls_get_rec()
674 struct sk_msg *msg_pl, *msg_en; in tls_push_record() local
682 msg_pl = &rec->msg_plaintext; in tls_push_record()
685 split_point = msg_pl->apply_bytes; in tls_push_record()
686 split = split_point && split_point < msg_pl->sg.size; in tls_push_record()
688 msg_pl->sg.size + in tls_push_record()
697 rc = tls_split_open_record(sk, rec, &tmp, msg_pl, msg_en, in tls_push_record()
707 if (!msg_pl->sg.size) { in tls_push_record()
709 msg_pl = &rec->msg_plaintext; in tls_push_record()
713 sk_msg_trim(sk, msg_en, msg_pl->sg.size + in tls_push_record()
720 i = msg_pl->sg.end; in tls_push_record()
728 sg_chain(msg_pl->sg.data, msg_pl->sg.end + 1, in tls_push_record()
731 sg_mark_end(sk_msg_elem(msg_pl, i)); in tls_push_record()
734 if (msg_pl->sg.end < msg_pl->sg.start) { in tls_push_record()
735 sg_chain(&msg_pl->sg.data[msg_pl->sg.start], in tls_push_record()
736 MAX_SKB_FRAGS - msg_pl->sg.start + 1, in tls_push_record()
737 msg_pl->sg.data); in tls_push_record()
740 i = msg_pl->sg.start; in tls_push_record()
741 sg_chain(rec->sg_aead_in, 2, &msg_pl->sg.data[i]); in tls_push_record()
750 tls_make_aad(rec->aad_space, msg_pl->sg.size + prot->tail_size, in tls_push_record()
757 msg_pl->sg.size + prot->tail_size, in tls_push_record()
763 msg_pl->sg.size + prot->tail_size, i); in tls_push_record()
775 msg_pl = &tmp->msg_plaintext; in tls_push_record()
777 sk_msg_trim(sk, msg_en, msg_pl->sg.size + prot->overhead_size); in tls_push_record()
900 struct sk_msg *msg_pl; in tls_sw_push_pending_record() local
906 msg_pl = &rec->msg_plaintext; in tls_sw_push_pending_record()
907 copied = msg_pl->sg.size; in tls_sw_push_pending_record()
911 return bpf_exec_tx_verdict(msg_pl, sk, true, TLS_RECORD_TYPE_DATA, in tls_sw_push_pending_record()
927 struct sk_msg *msg_pl, *msg_en; in tls_sw_sendmsg() local
970 msg_pl = &rec->msg_plaintext; in tls_sw_sendmsg()
973 orig_size = msg_pl->sg.size; in tls_sw_sendmsg()
976 record_room = TLS_MAX_PAYLOAD_SIZE - msg_pl->sg.size; in tls_sw_sendmsg()
982 required_size = msg_pl->sg.size + try_to_copy + in tls_sw_sendmsg()
1003 u32 first = msg_pl->sg.end; in tls_sw_sendmsg()
1006 msg_pl, try_to_copy); in tls_sw_sendmsg()
1013 sk_msg_sg_copy_set(msg_pl, first); in tls_sw_sendmsg()
1014 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_sendmsg()
1030 sk_msg_sg_copy_clear(msg_pl, first); in tls_sw_sendmsg()
1032 msg_pl->sg.size - orig_size); in tls_sw_sendmsg()
1034 sk_msg_trim(sk, msg_pl, orig_size); in tls_sw_sendmsg()
1037 required_size = msg_pl->sg.size + try_to_copy; in tls_sw_sendmsg()
1048 try_to_copy -= required_size - msg_pl->sg.size; in tls_sw_sendmsg()
1051 msg_pl->sg.size + prot->overhead_size); in tls_sw_sendmsg()
1056 msg_pl, try_to_copy); in tls_sw_sendmsg()
1067 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_sendmsg()
1147 struct sk_msg *msg_pl; in tls_sw_do_sendpage() local
1177 msg_pl = &rec->msg_plaintext; in tls_sw_do_sendpage()
1180 record_room = TLS_MAX_PAYLOAD_SIZE - msg_pl->sg.size; in tls_sw_do_sendpage()
1187 required_size = msg_pl->sg.size + copy + prot->overhead_size; in tls_sw_do_sendpage()
1201 copy -= required_size - msg_pl->sg.size; in tls_sw_do_sendpage()
1205 sk_msg_page_add(msg_pl, page, copy, offset); in tls_sw_do_sendpage()
1213 if (full_record || eor || sk_msg_full(msg_pl)) { in tls_sw_do_sendpage()
1214 ret = bpf_exec_tx_verdict(msg_pl, sk, full_record, in tls_sw_do_sendpage()
1235 tls_trim_both_msgs(sk, msg_pl->sg.size); in tls_sw_do_sendpage()