patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] test/crypto: fix return value from session
@ 2023-05-05 16:53 Tejasree Kondoj
  2023-05-08  5:13 ` Anoob Joseph
  2023-05-08  8:53 ` Power, Ciara
  0 siblings, 2 replies; 4+ messages in thread
From: Tejasree Kondoj @ 2023-05-05 16:53 UTC (permalink / raw)
  To: Akhil Goyal, Fan Zhang
  Cc: Anoob Joseph, Ciara Power, Jerin Jacob, Aakash Sasidharan,
	Gowrishankar Muthukrishnan, Vidya Sagar Velumuri, dev, stable

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

Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations")
Cc: stable@dpdk.org

Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
 app/test/test_cryptodev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 0b2ce5ea65..bbc7e8dd18 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -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 */
-- 
2.25.1


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

end of thread, other threads:[~2023-05-24 12:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05 16:53 [PATCH] test/crypto: fix return value from session Tejasree Kondoj
2023-05-08  5:13 ` Anoob Joseph
2023-05-08  8:53 ` Power, Ciara
2023-05-24 12:13   ` 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).