DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness
@ 2019-04-08  8:59 Gagandeep Singh
  2019-04-08  8:59 ` Gagandeep Singh
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Gagandeep Singh @ 2019-04-08  8:59 UTC (permalink / raw)
  To: dev, Akhil Goyal; +Cc: Gagandeep Singh

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(-)

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;
-- 
1.9.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-04-16 14:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08  8:59 [dpdk-dev] [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness Gagandeep Singh
2019-04-08  8:59 ` Gagandeep Singh
2019-04-08  8:59 ` [dpdk-dev] [PATCH 2/2] crypto/caam_jr: fix total length in AUTH only sg case Gagandeep Singh
2019-04-08  8:59   ` Gagandeep Singh
2019-04-09 14:06   ` Akhil Goyal
2019-04-09 14:06     ` Akhil Goyal
2019-04-09 14:17 ` [dpdk-dev] [PATCH 1/2] crypto/caam_jr: fix the shared desc endianness Akhil Goyal
2019-04-09 14:17   ` Akhil Goyal
2019-04-16 14:51   ` Akhil Goyal
2019-04-16 14:51     ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).