[1/2] crypto/caam_jr: fix the shared desc endianness

Message ID 1554736925-13184-1-git-send-email-g.singh@nxp.com (mailing list archive)
State Accepted, archived
Delegated to: akhil goyal
Headers
Series [1/2] crypto/caam_jr: fix the shared desc endianness |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS

Commit Message

Gagandeep Singh April 8, 2019, 8:59 a.m. UTC
  build a shared descriptor accordingly if core and
CAAM endianness is same or different

Fixes: 6ef6beca8844 ("crypto/caam_jr: add enqueue/dequeue operations")
Cc: g.singh@nxp.com

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
---
 drivers/crypto/caam_jr/caam_jr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Akhil Goyal April 9, 2019, 2:17 p.m. UTC | #1
> -----Original Message-----
> From: Gagandeep Singh
> Sent: Monday, April 8, 2019 2:29 PM
> To: dev@dpdk.org; Akhil Goyal <akhil.goyal@nxp.com>
> Cc: Gagandeep Singh <G.Singh@nxp.com>
> Subject: [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness
> 
> build a shared descriptor accordingly if core and
> CAAM endianness is same or different
> 
> Fixes: 6ef6beca8844 ("crypto/caam_jr: add enqueue/dequeue operations")
> Cc: g.singh@nxp.com
> 
> Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
> ---
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
  
Akhil Goyal April 16, 2019, 2:51 p.m. UTC | #2
> > -----Original Message-----
> > From: Gagandeep Singh
> > Sent: Monday, April 8, 2019 2:29 PM
> > To: dev@dpdk.org; Akhil Goyal <akhil.goyal@nxp.com>
> > Cc: Gagandeep Singh <G.Singh@nxp.com>
> > Subject: [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness
> >
> > build a shared descriptor accordingly if core and
> > CAAM endianness is same or different
> >
> > Fixes: 6ef6beca8844 ("crypto/caam_jr: add enqueue/dequeue operations")
> > Cc: g.singh@nxp.com
> >
> > Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
> > ---
> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>

Series Applied to dpdk-next-crypto

Thanks.
  

Patch

diff --git a/drivers/crypto/caam_jr/caam_jr.c b/drivers/crypto/caam_jr/caam_jr.c
index 190053e..20452e3 100644
--- a/drivers/crypto/caam_jr/caam_jr.c
+++ b/drivers/crypto/caam_jr/caam_jr.c
@@ -311,7 +311,7 @@  void caam_jr_stats_reset(struct rte_cryptodev *dev)
 	int32_t shared_desc_len = 0;
 	struct sec_cdb *cdb;
 	int err;
-#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
+#if CAAM_BYTE_ORDER == CORE_BYTE_ORDER
 	int swap = false;
 #else
 	int swap = true;