Lines Matching refs:ml
186 move_icv(struct rte_mbuf *ml, uint32_t ofs) in move_icv() argument
193 ms = ml->next; in move_icv()
194 n = ml->data_len - ofs; in move_icv()
196 prev = rte_pktmbuf_mtod_offset(ml, const void *, ofs); in move_icv()
203 ml->data_len -= n; in move_icv()
283 struct rte_mbuf *ml; in inb_prepare() local
298 ml = mbuf_get_seg_ofs(mb, &icv_ofs); in inb_prepare()
304 if (ml->data_len < icv_ofs + icv_len) { in inb_prepare()
306 ml = move_icv(ml, icv_ofs); in inb_prepare()
307 if (ml == NULL) in inb_prepare()
323 if (sa->aad_len + sa->sqh_len > rte_pktmbuf_tailroom(ml)) in inb_prepare()
326 icv->va = rte_pktmbuf_mtod_offset(ml, void *, icv_ofs); in inb_prepare()
327 icv->pa = rte_pktmbuf_iova_offset(ml, icv_ofs); in inb_prepare()
336 ml->data_len += sa->sqh_len; in inb_prepare()
413 process_step1(struct rte_mbuf *mb, uint32_t tlen, struct rte_mbuf **ml, in process_step1() argument
421 ml[0] = mbuf_get_seg_ofs(mb, &ofs); in process_step1()
422 pt = rte_pktmbuf_mtod_offset(ml[0], const struct rte_esp_tail *, ofs); in process_step1()
458 trs_process_check(struct rte_mbuf *mb, struct rte_mbuf **ml, in trs_process_check() argument
468 ml[0] = mbuf_get_seg_ofs(mb, tofs); in trs_process_check()
472 return check_pad_bytes(ml[0], tofs[0], espt.pad_len); in trs_process_check()
481 tun_process_check(struct rte_mbuf *mb, struct rte_mbuf **ml, in tun_process_check() argument
485 return (trs_process_check(mb, ml, tofs, espt, hlen, tlen) || in tun_process_check()
497 tun_process_step2(struct rte_mbuf *mb, struct rte_mbuf *ml, uint32_t hlen, in tun_process_step2() argument
507 mbuf_cut_seg_ofs(mb, ml, tofs, tlen); in tun_process_step2()
521 trs_process_step2(struct rte_mbuf *mb, struct rte_mbuf *ml, uint32_t hlen, in trs_process_step2() argument
530 np = tun_process_step2(mb, ml, hlen, adj, tofs, tlen, sqn); in trs_process_step2()
581 struct rte_mbuf *ml[num]; in tun_process() local
597 process_step1(mb[i], tlen, &ml[i], &espt[i], &hl[i], &to[i]); in tun_process()
607 if (tun_process_check(mb[i], &ml[i], &to[i], espt[i], adj, tl, in tun_process()
614 inh = tun_process_step2(mb[i], ml[i], hl[i], adj, in tun_process()
645 struct rte_mbuf *ml[num]; in trs_process() local
659 process_step1(mb[i], tlen, &ml[i], &espt[i], &hl[i], &to[i]); in trs_process()
669 if (trs_process_check(mb[i], &ml[i], &to[i], espt[i], in trs_process()
673 np = trs_process_step2(mb[i], ml[i], hl[i], cofs, in trs_process()