[PATCH] test/crypto: add check for device capability flag
Akhil Goyal
gakhil at marvell.com
Tue Nov 17 16:50:23 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;
> --
Applied to dpdk-next-crypto
Thanks.
More information about the dev
mailing list