test/crypto: fix callback test case
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.
--- app/test/test_cryptodev.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
app/test/test_cryptodev.c +2 -9
@@ -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
________________________________
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.
--- app/test/test_cryptodev.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
app/test/test_cryptodev.c +2 -9
@@ -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
Akhil Goyal
AppliedQuoted 14 lines
Acked-by Kai Ji <[email protected]>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 caseFix
test_enqdeq_callback_null_cipherfunction to match its name by removing the chained ops.
Quoted 8 lines
Fixes 4ad17a1c8fb3 ("test/crypto: fix enqueue/dequeue callback case")Signed-off-by Radu Nicolau <[email protected]>--- app/test/test_cryptodev.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
Applied to dpdk-next-crypto
Thanks.