* [PATCH] crypto/virtio: return proper error in session fail
@ 2025-01-08 12:14 Rajesh Mudimadugula
2025-02-06 12:37 ` [EXTERNAL] " Akhil Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Rajesh Mudimadugula @ 2025-01-08 12:14 UTC (permalink / raw)
To: dev; +Cc: jianjay.zhou, Rajesh Mudimadugula
Return relevant error code when crypto session configure
fails.
Signed-off-by: Rajesh Mudimadugula <rmudimadugul@marvell.com>
---
drivers/crypto/virtio/virtio_cryptodev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/virtio/virtio_cryptodev.c b/drivers/crypto/virtio/virtio_cryptodev.c
index 98415af123..ebb53cd483 100644
--- a/drivers/crypto/virtio/virtio_cryptodev.c
+++ b/drivers/crypto/virtio/virtio_cryptodev.c
@@ -1373,6 +1373,7 @@ virtio_crypto_sym_configure_session(
}
break;
default:
+ ret = -ENOTSUP;
VIRTIO_CRYPTO_SESSION_LOG_ERR(
"Unsupported operation chain order parameter");
goto error_out;
@@ -1380,7 +1381,7 @@ virtio_crypto_sym_configure_session(
return 0;
error_out:
- return -1;
+ return ret;
}
static void
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [EXTERNAL] [PATCH] crypto/virtio: return proper error in session fail
2025-01-08 12:14 [PATCH] crypto/virtio: return proper error in session fail Rajesh Mudimadugula
@ 2025-02-06 12:37 ` Akhil Goyal
0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2025-02-06 12:37 UTC (permalink / raw)
To: Rajesh Mudimadugula [C], dev; +Cc: jianjay.zhou, Rajesh Mudimadugula [C]
> Return relevant error code when crypto session configure
> fails.
>
> Signed-off-by: Rajesh Mudimadugula <rmudimadugul@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
Applied to dpdk-next-crypto
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-06 12:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-08 12:14 [PATCH] crypto/virtio: return proper error in session fail Rajesh Mudimadugula
2025-02-06 12:37 ` [EXTERNAL] " 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).