Hi,
I run "pdcp_autotest"  with --vdev=crypto_snow3g in app/dpdk-test in dpdk
v25.11.
When i = 42 in run_test_for_one_know_vec() in test_pdcp.c,
It is PDCP control plane Auth snow3g gen + Cipher sonw3g enc,
the case failed because the last 4 bytes is cleared in
last for() loop in line 167 in  process_snow3g_cipher_op() in pmd_snow3g.c .

It can be fixed with following change:

diff --git a/drivers/crypto/ipsec_mb/pmd_snow3g.c
b/drivers/crypto/ipsec_mb/pmd_snow3g.c
index b3c3b05a8a..45a8be5fc8 100644
--- a/drivers/crypto/ipsec_mb/pmd_snow3g.c
+++ b/drivers/crypto/ipsec_mb/pmd_snow3g.c
@@ -157,7 +157,7 @@ process_snow3g_cipher_op(struct ipsec_mb_qp *qp, struct
rte_crypto_op **ops,
        for (i = 0; i < num_ops; i++) {
                if ((session->op == IPSEC_MB_OP_HASH_VERIFY_THEN_DECRYPT ||
                        session->op == IPSEC_MB_OP_HASH_GEN_THEN_ENCRYPT) &&
-                               ops[i]->sym->m_dst != NULL) {
+                               ops[i]->sym->m_dst != NULL &&
ops[i]->sym->m_dst != ops[i]->sym->m_src) {
                        digest_appended[i] =
                                snow3g_digest_appended_in_src(ops[i]);
                        /* Clear unencrypted digest from

Reply via email to