* [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
* RE: [PATCH] test/crypto: fix return value from session
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
1 sibling, 0 replies; 4+ messages in thread
From: Anoob Joseph @ 2023-05-08 5:13 UTC (permalink / raw)
To: Tejasree Kondoj, Akhil Goyal, Fan Zhang
Cc: Ciara Power, Jerin Jacob Kollanukkaran, 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>
Acked-by: Anoob Joseph <anoobj@marvell.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] test/crypto: fix return value from session
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
1 sibling, 1 reply; 4+ messages in thread
From: Power, Ciara @ 2023-05-08 8:53 UTC (permalink / raw)
To: Tejasree Kondoj, Akhil Goyal, Fan Zhang
Cc: Anoob Joseph, Jerin Jacob, Aakash Sasidharan,
Gowrishankar Muthukrishnan, Vidya Sagar Velumuri, dev, stable
> -----Original Message-----
> From: Tejasree Kondoj <ktejasree@marvell.com>
> Sent: Friday 5 May 2023 17:54
> To: Akhil Goyal <gakhil@marvell.com>; Fan Zhang
> <fanzhang.oss@gmail.com>
> Cc: Anoob Joseph <anoobj@marvell.com>; Power, Ciara
> <ciara.power@intel.com>; Jerin Jacob <jerinj@marvell.com>; Aakash
> Sasidharan <asasidharan@marvell.com>; Gowrishankar Muthukrishnan
> <gmuthukrishn@marvell.com>; Vidya Sagar Velumuri
> <vvelumuri@marvell.com>; dev@dpdk.org; stable@dpdk.org
> 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: stable@dpdk.org
>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
> ---
> app/test/test_cryptodev.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Acked-by: Ciara Power <ciara.power@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] test/crypto: fix return value from session
2023-05-08 8:53 ` Power, Ciara
@ 2023-05-24 12:13 ` Akhil Goyal
0 siblings, 0 replies; 4+ messages in thread
From: Akhil Goyal @ 2023-05-24 12:13 UTC (permalink / raw)
To: Power, Ciara, Tejasree Kondoj, Fan Zhang
Cc: Anoob Joseph, Jerin Jacob Kollanukkaran, Aakash Sasidharan,
Gowrishankar Muthukrishnan, Vidya Sagar Velumuri, dev, stable
> > 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: stable@dpdk.org
> >
> > Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
> > ---
> > app/test/test_cryptodev.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
>
> Acked-by: Ciara Power <ciara.power@intel.com>
Applied to dpdk-next-crypto
Thanks.
^ 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).