git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81fe96a
)
crypto/caam_jr: fix shared descriptor endianness
author
Gagandeep Singh
<g.singh@nxp.com>
Mon, 8 Apr 2019 08:59:28 +0000
(08:59 +0000)
committer
Akhil Goyal
<akhil.goyal@nxp.com>
Thu, 18 Apr 2019 14:01:28 +0000
(16:01 +0200)
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 <g.singh@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/caam_jr/caam_jr.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/caam_jr/caam_jr.c
b/drivers/crypto/caam_jr/caam_jr.c
index
f647b36
..
da9e982
100644
(file)
--- 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;