Acked-by: Kai Ji <[email protected]>
________________________________
From: Nicolau, Radu <[email protected]>
Sent: 06 October 2026 11:53
To: [email protected] <[email protected]>
Cc: [email protected] <[email protected]>;
Nicolau, Radu <[email protected]>; [email protected] <[email protected]>; Ji,
Kai <[email protected]>; De Lara Guarch, Pablo <[email protected]>;
Fan Zhang <[email protected]>; Doherty, Declan <[email protected]>
Subject: [PATCH] crypto: ipsec_mb fix OOP SGL for NULL cipher
For the NULL cipher OOP SGL case should be handled
by the linear buffer SGL path
Fixes: 03944ff5e3df ("crypto/ipsec_mb: support null auth/cipher for aesni_mb")
Cc: [email protected]
Signed-off-by: Radu Nicolau <[email protected]>
---
drivers/crypto/ipsec_mb/pmd_aesni_mb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/ipsec_mb/pmd_aesni_mb.c
b/drivers/crypto/ipsec_mb/pmd_aesni_mb.c
index ab65316978..90989c9a69 100644
--- a/drivers/crypto/ipsec_mb/pmd_aesni_mb.c
+++ b/drivers/crypto/ipsec_mb/pmd_aesni_mb.c
@@ -2142,7 +2142,8 @@ set_mb_job_params(IMB_JOB *job, struct ipsec_mb_qp *qp,
job->msg_len_to_cipher_in_bytes = op->sym->cipher.data.length;
}
- if (cipher_mode == IMB_CIPHER_NULL && oop) {
+ /* NULL cipher OOP SGL case handled by the linear buffer SGL code */
+ if (cipher_mode == IMB_CIPHER_NULL && oop && !sgl) {
memcpy(job->dst + job->cipher_start_src_offset_in_bytes,
job->src + job->cipher_start_src_offset_in_bytes,
job->msg_len_to_cipher_in_bytes);
--
2.52.0