From d80dc4bb7c89321d8e03e5b7f278e30e99078bea Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Mon, 8 Apr 2019 08:59:28 +0000 Subject: [PATCH] crypto/caam_jr: fix shared descriptor 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: stable@dpdk.org Signed-off-by: Gagandeep Singh Acked-by: Akhil Goyal --- drivers/crypto/caam_jr/caam_jr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/caam_jr/caam_jr.c b/drivers/crypto/caam_jr/caam_jr.c index f647b36cbb..da9e9821e3 100644 --- a/drivers/crypto/caam_jr/caam_jr.c +++ b/drivers/crypto/caam_jr/caam_jr.c @@ -311,7 +311,7 @@ caam_jr_prep_cdb(struct caam_jr_session *ses) 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; -- 2.20.1