crypto/caam_jr: fix the shared desc endianness
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
--- drivers/crypto/caam_jr/caam_jr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/caam_jr/caam_jr.c +1 -1
@@ -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;
Signature · 1 line
1.9.1
PATCH 2/2 crypto/caam_jr: fix total length in AUTH only sg case
CAAM return wrong digest value in AUTH only sg test case because digest calculated on wrong length of data
--- drivers/crypto/caam_jr/caam_jr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/caam_jr/caam_jr.c +1 -1
@@ -798,7 +798,7 @@ void caam_jr_stats_reset(struct rte_cryptodev *dev) sg->len =cpu_to_caam32 (ses->digest_length); length += ses->digest_length; }else { - length -= ses->digest_length; + sg->len -= ses->digest_length; }/* last element*/
Signature · 1 line
1.9.1
Re: [dpdk-dev] [PATCH 2/2] crypto/caam_jr: fix total length in AUTH only sg case
Quoted 9 lines
-----Original Message-----
From: Gagandeep Singh
Sent: Monday, April 8, 2019 2:30 PM
To: [email protected]; Akhil Goyal <[email protected]>
Cc: Gagandeep Singh <[email protected]>
Subject: [PATCH 2/2]crypto/caam_jr: fix total length in AUTH only sg case
Quoted 8 lines
CAAM return wrong digest value in AUTH only sg test case because digest calculated on wrong length of data
Fixes 71dd6b9d44e7 ("crypto/caam_jr: add scatter gather")Signed-off-by Gagandeep Singh <[email protected]>---
Quoted 9 lines
-----Original Message-----
From: Gagandeep Singh
Sent: Monday, April 8, 2019 2:29 PM
To: [email protected]; Akhil Goyal <[email protected]>
Cc: Gagandeep Singh <[email protected]>
Subject: [PATCH 1/2]crypto/caam_jr: fix the shared desc endianness
Quoted 8 lines
build a shared descriptor accordingly if core and
CAAM endianness is same or differentFixes 6ef6beca8844 ("crypto/caam_jr: add enqueue/dequeue operations")Signed-off-by Gagandeep Singh <[email protected]>---
Quoted 10 lines
Quoted 10 lines
-----Original Message-----
From: Gagandeep Singh
Sent: Monday, April 8, 2019 2:29 PM
To: [email protected]; Akhil Goyal <[email protected]>
Cc: Gagandeep Singh <[email protected]>
Subject: [PATCH 1/2]crypto/caam_jr: fix the shared desc endiannessbuild a shared descriptor accordingly if core and
CAAM endianness is same or different
Quoted 6 lines
Quoted 5 lines
Fixes 6ef6beca8844 ("crypto/caam_jr: add enqueue/dequeue operations")Signed-off-by Gagandeep Singh <[email protected]>---
Acked-by Akhil Goyal <[email protected]>
Series Applied to dpdk-next-crypto
Thanks.