op->sym->auth.data.length + digest->len))
return -EINVAL;
- digest->iova = rte_pktmbuf_mtophys_offset(mdst,
+ digest->iova = rte_pktmbuf_iova_offset(mdst,
op->sym->auth.data.offset +
op->sym->auth.data.length);
digest->virt = rte_pktmbuf_mtod_offset(mdst, uint8_t *,
if (datalen <= mlen)
mlen = datalen;
sglist[cnt].len = mlen;
- sglist[cnt].iova = rte_pktmbuf_mtophys_offset(m, off);
+ sglist[cnt].iova = rte_pktmbuf_iova_offset(m, off);
sglist[cnt].virt = rte_pktmbuf_mtod_offset(m, uint8_t *, off);
sgtbl->total_bytes += mlen;
cnt++;
mlen = rte_pktmbuf_data_len(m) < datalen ?
rte_pktmbuf_data_len(m) : datalen;
sglist[cnt].len = mlen;
- sglist[cnt].iova = rte_pktmbuf_mtophys(m);
+ sglist[cnt].iova = rte_pktmbuf_iova(m);
sglist[cnt].virt = rte_pktmbuf_mtod(m, uint8_t *);
sgtbl->total_bytes += mlen;
cnt++;