[1/2] crypto/caam_jr: fix the shared desc endianness
Checks
Commit Message
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
> -----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>
> > -----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.
@@ -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;