crypto/dpaa_sec: rename mbuf physical address to IOVA
authorHemant Agrawal <hemant.agrawal@nxp.com>
Tue, 7 Nov 2017 12:15:08 +0000 (17:45 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 14:39:47 +0000 (15:39 +0100)
buf_physaddr is getting deprecated in mbuf.

Fixes: 455da5453987 ("mbuf: rename physical address to IOVA")

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/crypto/dpaa_sec/dpaa_sec.c

index d1ef241..16155b1 100644 (file)
@@ -686,10 +686,10 @@ build_cipher_auth_gcm(struct rte_crypto_op *op, dpaa_sec_session *ses)
        uint8_t *IV_ptr = rte_crypto_op_ctod_offset(op, uint8_t *,
                        ses->iv.offset);
 
-       src_start_addr = sym->m_src->buf_physaddr + sym->m_src->data_off;
+       src_start_addr = sym->m_src->buf_iova + sym->m_src->data_off;
 
        if (sym->m_dst)
-               dst_start_addr = sym->m_dst->buf_physaddr + sym->m_dst->data_off;
+               dst_start_addr = sym->m_dst->buf_iova + sym->m_dst->data_off;
        else
                dst_start_addr = src_start_addr;