diff mbox series

crypto/dpaa_sec: changing buf physaddr to buf iova

Message ID 1510056908-8372-3-git-send-email-hemant.agrawal@nxp.com
State New
Headers show
Series crypto/dpaa_sec: changing buf physaddr to buf iova | expand

Commit Message

Hemant Agrawal Nov. 7, 2017, 12:15 p.m. UTC
buf_physaddr is getting deprecated in mbuf.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>

---
 drivers/crypto/dpaa_sec/dpaa_sec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.7.4

Comments

Thomas Monjalon Nov. 7, 2017, 1:06 p.m. UTC | #1
07/11/2017 13:15, Hemant Agrawal:
> buf_physaddr is getting deprecated in mbuf.


Seems two occurences were missing, thanks.

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

> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
diff mbox series

Patch

diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c
index d1ef241..16155b1 100644
--- a/drivers/crypto/dpaa_sec/dpaa_sec.c
+++ b/drivers/crypto/dpaa_sec/dpaa_sec.c
@@ -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;