[PATCH] test/crypto: fix callback test case

Ji, Kai kai.ji at intel.com
Wed Nov 11 17:18:43 CET 2026


Acked-by: Kai Ji <kai.ji at intel.com>


________________________________
From: Radu Nicolau <radu.nicolau at intel.com>
Sent: Wednesday, November 11, 2026 11:14
To: dev at dpdk.org <dev at dpdk.org>
Cc: Nicolau, Radu <radu.nicolau at intel.com>; stable at dpdk.org <stable at dpdk.org>; Akhil Goyal <gakhil at marvell.com>; Fan Zhang <fanzhang.oss at gmail.com>; Kundapura, Ganapati <ganapati.kundapura at intel.com>
Subject: [PATCH] test/crypto: fix callback test case

Fix test_enqdeq_callback_null_cipher function to
match its name by removing the chained ops.

Fixes: 4ad17a1c8fb3 ("test/crypto: fix enqueue/dequeue callback case")
Cc: stable at dpdk.org

Signed-off-by: Radu Nicolau <radu.nicolau at intel.com>
---
 app/test/test_cryptodev.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index fd02107baf..d8c64a13ae 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -15191,21 +15191,14 @@ test_enqdeq_callback_null_cipher(void)

         /* Setup Cipher Parameters */
         ut_params->cipher_xform.type = RTE_CRYPTO_SYM_XFORM_CIPHER;
-       ut_params->cipher_xform.next = &ut_params->auth_xform;
+       ut_params->cipher_xform.next = NULL;

         ut_params->cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_NULL;
         ut_params->cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT;

-       /* Setup Auth Parameters */
-       ut_params->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH;
-       ut_params->auth_xform.next = NULL;
-
-       ut_params->auth_xform.auth.algo = RTE_CRYPTO_AUTH_NULL;
-       ut_params->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_GENERATE;
-
         /* Create Crypto session */
         ut_params->sess = rte_cryptodev_sym_session_create(ts_params->valid_devs[0],
-                               &ut_params->auth_xform, ts_params->session_mpool);
+                               &ut_params->cipher_xform, ts_params->session_mpool);
         if (ut_params->sess == NULL && rte_errno == ENOTSUP)
                 return TEST_SKIPPED;
         TEST_ASSERT_NOT_NULL(ut_params->sess, "Session creation failed");
--
2.52.0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20261111/6b5360ce/attachment.htm>


More information about the dev mailing list