Skip to contentSkip to conversation

test/crypto: fix callback test case

PATCH Applied Radu Nicolau 3 participants 3 messages Nov 11 – Nov 17

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 app/test/test_cryptodev.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
app/test/test_cryptodev.c +2 -9
index fd02107baf..d8c64a13ae 100644
@@ -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");
Signature · 1 line
2.52.0
Acked-by on v1 1/1
#1 lore raw

________________________________
From: Radu Nicolau <[email protected]>
Sent: Wednesday, November 11, 2026 11:14
To: [email protected] <[email protected]>
Cc: Nicolau, Radu <[email protected]>; [email protected] <[email protected]>; Akhil Goyal <[email protected]>; Fan Zhang <[email protected]>; Kundapura, Ganapati <[email protected]>
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")
---
 app/test/test_cryptodev.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
app/test/test_cryptodev.c +2 -9
index fd02107baf..d8c64a13ae 100644
@@ -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

Applied
#2 lore raw
Quoted 14 lines

From: Radu Nicolau <[email protected]>
Sent: Wednesday, November 11, 2026 11:14
To: [email protected] <[email protected]>
Cc: Nicolau, Radu <[email protected]>; [email protected] <[email protected]>; Akhil Goyal <[email protected]>; Fan Zhang <[email protected]>; Kundapura, Ganapati <[email protected]>
Subject: [PATCH] test/crypto: fix callback test case

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

Quoted 8 lines
Fixes 4ad17a1c8fb3 ("test/crypto: fix enqueue/dequeue callback case")
---
 app/test/test_cryptodev.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

Applied to dpdk-next-crypto
Thanks.