* [PATCH 20.11.10] test/crypto: skip some synchronous tests with CPU crypto
@ 2023-10-19 12:48 Ciara Power
2023-10-23 15:50 ` Luca Boccassi
0 siblings, 1 reply; 2+ messages in thread
From: Ciara Power @ 2023-10-19 12:48 UTC (permalink / raw)
To: stable; +Cc: luca.boccassi, brian.dooley, Ciara Power
[ upstream commit 38318ce05459391344acb53a73c9a99537a0bd0f ]
Some synchronous tests are not supported for CPU crypto and
need to be skipped. This commit adds in extra skips for these tests.
Fixes: 55ab4a8 ("test/crypto: disable wireless cases for CPU crypto API")
Signed-off-by: Brian Dooley <brian.dooley@intel.com>
Signed-off-by: Ciara Power <ciara.power@intel.com>
---
app/test/test_cryptodev.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 2e76763e09..60fe8a1fbf 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -5800,6 +5800,9 @@ test_zuc_auth_cipher(const struct wireless_test_data *tdata,
&cap_idx) == NULL)
return -ENOTSUP;
+ if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
+ return -ENOTSUP;
+
rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info);
uint64_t feat_flags = dev_info.feature_flags;
@@ -6828,6 +6831,8 @@ test_mixed_auth_cipher(const struct mixed_cipher_auth_test_data *tdata,
return -ENOTSUP;
if (global_api_test_type == CRYPTODEV_RAW_API_TEST)
return -ENOTSUP;
+ if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
+ return -ENOTSUP;
rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info);
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 20.11.10] test/crypto: skip some synchronous tests with CPU crypto
2023-10-19 12:48 [PATCH 20.11.10] test/crypto: skip some synchronous tests with CPU crypto Ciara Power
@ 2023-10-23 15:50 ` Luca Boccassi
0 siblings, 0 replies; 2+ messages in thread
From: Luca Boccassi @ 2023-10-23 15:50 UTC (permalink / raw)
To: Ciara Power; +Cc: stable, brian.dooley
On Thu, 19 Oct 2023 at 13:48, Ciara Power <ciara.power@intel.com> wrote:
>
> [ upstream commit 38318ce05459391344acb53a73c9a99537a0bd0f ]
>
> Some synchronous tests are not supported for CPU crypto and
> need to be skipped. This commit adds in extra skips for these tests.
>
> Fixes: 55ab4a8 ("test/crypto: disable wireless cases for CPU crypto API")
>
> Signed-off-by: Brian Dooley <brian.dooley@intel.com>
> Signed-off-by: Ciara Power <ciara.power@intel.com>
> ---
> app/test/test_cryptodev.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
> index 2e76763e09..60fe8a1fbf 100644
> --- a/app/test/test_cryptodev.c
> +++ b/app/test/test_cryptodev.c
> @@ -5800,6 +5800,9 @@ test_zuc_auth_cipher(const struct wireless_test_data *tdata,
> &cap_idx) == NULL)
> return -ENOTSUP;
>
> + if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
> + return -ENOTSUP;
> +
> rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info);
>
> uint64_t feat_flags = dev_info.feature_flags;
> @@ -6828,6 +6831,8 @@ test_mixed_auth_cipher(const struct mixed_cipher_auth_test_data *tdata,
> return -ENOTSUP;
> if (global_api_test_type == CRYPTODEV_RAW_API_TEST)
> return -ENOTSUP;
> + if (gbl_action_type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO)
> + return -ENOTSUP;
>
> rte_cryptodev_info_get(ts_params->valid_devs[0], &dev_info);
>
> --
> 2.25.1
>
Thanks, applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-23 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-19 12:48 [PATCH 20.11.10] test/crypto: skip some synchronous tests with CPU crypto Ciara Power
2023-10-23 15:50 ` Luca Boccassi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).