* [PATCH 1/2] vhost: fix cipher data length
@ 2025-04-03 12:22 Rajesh Mudimadugula
2025-04-10 5:12 ` [EXTERNAL] " Akhil Goyal
0 siblings, 1 reply; 2+ messages in thread
From: Rajesh Mudimadugula @ 2025-04-03 12:22 UTC (permalink / raw)
To: dev; +Cc: maxime.coquelin, chenbox, Rajesh Mudimadugula
This patch fixes cipher data length, in the event of algorithm
chaining. When enqueuing crypto op to vhost backend
cipher.data.length is set correctly which is in
virtqueue_crypto_sym_pkt_header_arrange(). This field is computed
and assigned wrongly instead of using passed value. This is
rectified and using correct cipher data length in vhost crypto.
Fixes: 3bb595ecd682 ("vhost/crypto: add request handler")
Signed-off-by: Rajesh Mudimadugula <rmudimadugul@marvell.com>
---
lib/vhost/vhost_crypto.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/vhost/vhost_crypto.c b/lib/vhost/vhost_crypto.c
index 3c6c5dc114..ddcd93738b 100644
--- a/lib/vhost/vhost_crypto.c
+++ b/lib/vhost/vhost_crypto.c
@@ -1358,8 +1358,7 @@ prepare_sym_chain_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op,
op->sess_type = RTE_CRYPTO_OP_WITH_SESSION;
op->sym->cipher.data.offset = chain->para.cipher_start_src_offset;
- op->sym->cipher.data.length = chain->para.src_data_len -
- chain->para.cipher_start_src_offset;
+ op->sym->cipher.data.length = chain->para.len_to_cipher;
op->sym->auth.data.offset = chain->para.hash_start_src_offset;
op->sym->auth.data.length = chain->para.len_to_hash;
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [EXTERNAL] [PATCH 1/2] vhost: fix cipher data length
2025-04-03 12:22 [PATCH 1/2] vhost: fix cipher data length Rajesh Mudimadugula
@ 2025-04-10 5:12 ` Akhil Goyal
0 siblings, 0 replies; 2+ messages in thread
From: Akhil Goyal @ 2025-04-10 5:12 UTC (permalink / raw)
To: Rajesh Mudimadugula [C], dev
Cc: maxime.coquelin, chenbox, Rajesh Mudimadugula [C], stable
> This patch fixes cipher data length, in the event of algorithm
> chaining. When enqueuing crypto op to vhost backend
> cipher.data.length is set correctly which is in
> virtqueue_crypto_sym_pkt_header_arrange(). This field is computed
> and assigned wrongly instead of using passed value. This is
> rectified and using correct cipher data length in vhost crypto.
>
> Fixes: 3bb595ecd682 ("vhost/crypto: add request handler")
Cc: stable@dpdk.org
>
> Signed-off-by: Rajesh Mudimadugula <rmudimadugul@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-10 5:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-03 12:22 [PATCH 1/2] vhost: fix cipher data length Rajesh Mudimadugula
2025-04-10 5:12 ` [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).