[PATCH] test/crypto: add check for device capability flag

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


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

________________________________
From: Radu Nicolau <radu.nicolau at intel.com>
Sent: 11 November 2026 11:14
To: dev at dpdk.org <dev at dpdk.org>
Cc: Nicolau, Radu <radu.nicolau at intel.com>; Akhil Goyal <gakhil at marvell.com>; Fan Zhang <fanzhang.oss at gmail.com>
Subject: [PATCH] test/crypto: add check for device capability flag

Test cryptodev feature flags for operation chaining support.

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

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index d8c64a13ae..5051ee7fae 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -8360,6 +8360,10 @@ test_mixed_auth_cipher(const struct mixed_cipher_auth_test_data *tdata,

         uint64_t feat_flags = dev_info.feature_flags;

+       if (!(feat_flags & RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING)) {
+               printf("Device doesn't support operation chaining.\n");
+               return TEST_SKIPPED;
+       }
         if (!(feat_flags & RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED)) {
                 printf("Device doesn't support digest encrypted.\n");
                 return TEST_SKIPPED;
--
2.52.0

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


More information about the dev mailing list