diff mbox series

sec

Message ID 1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com
State New
Headers show
Series sec | expand

Commit Message

Hemant Agrawal April 2, 2018, 3:33 p.m. UTC
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>

---
 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

-- 
2.7.4

Comments

Hemant Agrawal April 2, 2018, 3:46 p.m. UTC | #1
Please ignore it.

> -----Original Message-----

> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Hemant Agrawal

> Sent: Monday, April 02, 2018 9:03 PM

> To: dev@dpdk.org

> Cc: pablo.de.lara.guarch@intel.com; Akhil Goyal <akhil.goyal@nxp.com>; dpdk-

> up <dpdk-up@NXP1.onmicrosoft.com>

> Subject: [dpdk-dev] [PATCH] sec

> 

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

> ---

>  drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 16 ++++++++--------

>  1 file changed, 8 insertions(+), 8 deletions(-)

> 

> diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c

> b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c

> index 50a301d..b31f64c 100644

> --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c

> +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c

> @@ -117,7 +117,7 @@ build_authenc_gcm_sg_fd(dpaa2_sec_session *sess,

>  		return -1;

>  	}

>  	memset(fle, 0, FLE_SG_MEM_SIZE);

> -	DPAA2_SET_FLE_ADDR(fle, op);

> +	DPAA2_SET_FLE_ADDR(fle, (size_t)op);

>  	DPAA2_FLE_SAVE_CTXT(fle, (size_t)priv);

> 

>  	op_fle = fle + 1;

> @@ -268,7 +268,7 @@ build_authenc_gcm_fd(dpaa2_sec_session *sess,

>  		return -1;

>  	}

>  	memset(fle, 0, FLE_POOL_BUF_SIZE);

> -	DPAA2_SET_FLE_ADDR(fle, op);

> +	DPAA2_SET_FLE_ADDR(fle, (size_t)op);

>  	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);

>  	fle = fle + 1;

>  	sge = fle + 2;

> @@ -413,7 +413,7 @@ build_authenc_sg_fd(dpaa2_sec_session *sess,

>  		return -1;

>  	}

>  	memset(fle, 0, FLE_SG_MEM_SIZE);

> -	DPAA2_SET_FLE_ADDR(fle, op);

> +	DPAA2_SET_FLE_ADDR(fle, (size_t)op);

>  	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);

> 

>  	op_fle = fle + 1;

> @@ -562,7 +562,7 @@ build_authenc_fd(dpaa2_sec_session *sess,

>  		return -1;

>  	}

>  	memset(fle, 0, FLE_POOL_BUF_SIZE);

> -	DPAA2_SET_FLE_ADDR(fle, op);

> +	DPAA2_SET_FLE_ADDR(fle, (size_t)op);

>  	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);

>  	fle = fle + 1;

>  	sge = fle + 2;

> @@ -691,7 +691,7 @@ static inline int build_auth_sg_fd(

>  	}

>  	memset(fle, 0, FLE_SG_MEM_SIZE);

>  	/* first FLE entry used to store mbuf and session ctxt */

> -	DPAA2_SET_FLE_ADDR(fle, op);

> +	DPAA2_SET_FLE_ADDR(fle, (size_t)op);

>  	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);

>  	op_fle = fle + 1;

>  	ip_fle = fle + 2;

> @@ -772,7 +772,7 @@ build_auth_fd(dpaa2_sec_session *sess, struct

> rte_crypto_op *op,

>  	 * to get the MBUF Addr from the previous FLE.

>  	 * We can have a better approach to use the inline Mbuf

>  	 */

> -	DPAA2_SET_FLE_ADDR(fle, op);

> +	DPAA2_SET_FLE_ADDR(fle, (size_t)op);

>  	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);

>  	fle = fle + 1;

> 

> @@ -864,7 +864,7 @@ build_cipher_sg_fd(dpaa2_sec_session *sess, struct

> rte_crypto_op *op,

>  	}

>  	memset(fle, 0, FLE_SG_MEM_SIZE);

>  	/* first FLE entry used to store mbuf and session ctxt */

> -	DPAA2_SET_FLE_ADDR(fle, op);

> +	DPAA2_SET_FLE_ADDR(fle, (size_t)op);

>  	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);

> 

>  	op_fle = fle + 1;

> @@ -986,7 +986,7 @@ build_cipher_fd(dpaa2_sec_session *sess, struct

> rte_crypto_op *op,

>  	 * to get the MBUF Addr from the previous FLE.

>  	 * We can have a better approach to use the inline Mbuf

>  	 */

> -	DPAA2_SET_FLE_ADDR(fle, op);

> +	DPAA2_SET_FLE_ADDR(fle, (size_t)op);

>  	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);

>  	fle = fle + 1;

>  	sge = fle + 2;

> --

> 2.7.4
diff mbox series

Patch

diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
index 50a301d..b31f64c 100644
--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
@@ -117,7 +117,7 @@  build_authenc_gcm_sg_fd(dpaa2_sec_session *sess,
 		return -1;
 	}
 	memset(fle, 0, FLE_SG_MEM_SIZE);
-	DPAA2_SET_FLE_ADDR(fle, op);
+	DPAA2_SET_FLE_ADDR(fle, (size_t)op);
 	DPAA2_FLE_SAVE_CTXT(fle, (size_t)priv);
 
 	op_fle = fle + 1;
@@ -268,7 +268,7 @@  build_authenc_gcm_fd(dpaa2_sec_session *sess,
 		return -1;
 	}
 	memset(fle, 0, FLE_POOL_BUF_SIZE);
-	DPAA2_SET_FLE_ADDR(fle, op);
+	DPAA2_SET_FLE_ADDR(fle, (size_t)op);
 	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);
 	fle = fle + 1;
 	sge = fle + 2;
@@ -413,7 +413,7 @@  build_authenc_sg_fd(dpaa2_sec_session *sess,
 		return -1;
 	}
 	memset(fle, 0, FLE_SG_MEM_SIZE);
-	DPAA2_SET_FLE_ADDR(fle, op);
+	DPAA2_SET_FLE_ADDR(fle, (size_t)op);
 	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);
 
 	op_fle = fle + 1;
@@ -562,7 +562,7 @@  build_authenc_fd(dpaa2_sec_session *sess,
 		return -1;
 	}
 	memset(fle, 0, FLE_POOL_BUF_SIZE);
-	DPAA2_SET_FLE_ADDR(fle, op);
+	DPAA2_SET_FLE_ADDR(fle, (size_t)op);
 	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);
 	fle = fle + 1;
 	sge = fle + 2;
@@ -691,7 +691,7 @@  static inline int build_auth_sg_fd(
 	}
 	memset(fle, 0, FLE_SG_MEM_SIZE);
 	/* first FLE entry used to store mbuf and session ctxt */
-	DPAA2_SET_FLE_ADDR(fle, op);
+	DPAA2_SET_FLE_ADDR(fle, (size_t)op);
 	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);
 	op_fle = fle + 1;
 	ip_fle = fle + 2;
@@ -772,7 +772,7 @@  build_auth_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op,
 	 * to get the MBUF Addr from the previous FLE.
 	 * We can have a better approach to use the inline Mbuf
 	 */
-	DPAA2_SET_FLE_ADDR(fle, op);
+	DPAA2_SET_FLE_ADDR(fle, (size_t)op);
 	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);
 	fle = fle + 1;
 
@@ -864,7 +864,7 @@  build_cipher_sg_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op,
 	}
 	memset(fle, 0, FLE_SG_MEM_SIZE);
 	/* first FLE entry used to store mbuf and session ctxt */
-	DPAA2_SET_FLE_ADDR(fle, op);
+	DPAA2_SET_FLE_ADDR(fle, (size_t)op);
 	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);
 
 	op_fle = fle + 1;
@@ -986,7 +986,7 @@  build_cipher_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op,
 	 * to get the MBUF Addr from the previous FLE.
 	 * We can have a better approach to use the inline Mbuf
 	 */
-	DPAA2_SET_FLE_ADDR(fle, op);
+	DPAA2_SET_FLE_ADDR(fle, (size_t)op);
 	DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv);
 	fle = fle + 1;
 	sge = fle + 2;