From: Gagandeep Singh Date: Mon, 8 Apr 2019 08:59:28 +0000 (+0000) Subject: crypto/caam_jr: fix shared descriptor endianness X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d80dc4bb7c89321d8e03e5b7f278e30e99078bea;p=dpdk.git 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 --- 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;