Skip to contentSkip to conversation

test/crypto: fix return value from session

PATCH Applied Tejasree Kondoj 4 participants 4 messages May 5, 2023 – May 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/crypto: fix return value from session

Fixing return value if session failure occurs
due to unsupported feature.

Fixes eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations")
---
 app/test/test_cryptodev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
app/test/test_cryptodev.c +2 -2
index 0b2ce5ea65..bbc7e8dd18 100644
@@ -8778,7 +8778,7 @@ test_authenticated_encryption(const struct aead_test_data *tdata)
 			tdata->key.data, tdata->key.len,
 			tdata->aad.len, tdata->auth_tag.len,
 			tdata->iv.len);
-	if (retval < 0)
+	if (retval != TEST_SUCCESS)
 		return retval;
 
 	if (tdata->aad.len > MBUF_SIZE) {
@@ -11482,7 +11482,7 @@ test_authenticated_decryption(const struct aead_test_data *tdata)
 			tdata->key.data, tdata->key.len,
 			tdata->aad.len, tdata->auth_tag.len,
 			tdata->iv.len);
-	if (retval < 0)
+	if (retval != TEST_SUCCESS)
 		return retval;
 
 	/* alloc mbuf and set payload */
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#2 lore raw
In reply to Tejasree Kondoj
Quoted 16 lines

-----Original Message-----
From: Tejasree Kondoj <[email protected]>
Sent: Friday 5 May 2023 17:54
To: Akhil Goyal <[email protected]>; Fan Zhang <[email protected]>
Cc: Anoob Joseph <[email protected]>; Power, Ciara <[email protected]>; Jerin Jacob <[email protected]>; Aakash Sasidharan <[email protected]>; Gowrishankar Muthukrishnan <[email protected]>; Vidya Sagar Velumuri <[email protected]>; [email protected]; [email protected]
Subject: [PATCH] test/crypto: fix return value from session

Fixing return value if session failure occurs due to unsupported feature.

Quoted 9 lines
Fixes eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto

operations")
Cc: [email protected]

---
 app/test/test_cryptodev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Applied
#3 lore raw
Quoted 8 lines
Quoted 8 lines

Subject: [PATCH] test/crypto: fix return value from session

Fixing return value if session failure occurs due to unsupported feature.

Fixes eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto

operations")
Cc: [email protected]

Quoted 7 lines
Quoted 5 lines
---
 app/test/test_cryptodev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to dpdk-next-crypto
Thanks.