This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, api-next has been updated via d3d70123198484f659f1aebc6e34a4da89e10b29 (commit) via 1adc8ef5dbcfde127c1b52df84152c187519b27e (commit) from 177eeff39e19289e771119cfdffc515cb16f9db5 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit d3d70123198484f659f1aebc6e34a4da89e10b29 Author: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Date: Thu Dec 21 00:35:46 2017 +0300
validation: crypto: do not run tests if mode is not supported
Do not run packet tests if corresponding packet-mode operation is not supported by the platform.
Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c index 7ad2889f..8474ed83 100644 --- a/test/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/validation/api/crypto/odp_crypto_test_inp.c @@ -533,6 +533,15 @@ static int check_alg_support(odp_cipher_alg_t cipher, odp_auth_alg_t auth) if (odp_crypto_capability(&capability)) return ODP_TEST_INACTIVE;
+ if (suite_context.packet) { + if (suite_context.op_mode == ODP_CRYPTO_SYNC && + capability.sync_mode == ODP_SUPPORT_NO) + return ODP_TEST_INACTIVE; + if (suite_context.op_mode == ODP_CRYPTO_ASYNC && + capability.async_mode == ODP_SUPPORT_NO) + return ODP_TEST_INACTIVE; + } + /* Cipher algorithms */ switch (cipher) { case ODP_CIPHER_ALG_NULL:
commit 1adc8ef5dbcfde127c1b52df84152c187519b27e Author: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Date: Thu Dec 21 00:35:03 2017 +0300
linux-gen: crypto: populate sync/async_mode caps
Report to application that crypto module supports packet operation in both sync and async modes.
Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 11635cda..69e6d0da 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -722,6 +722,9 @@ int odp_crypto_capability(odp_crypto_capability_t *capa) /* Initialize crypto capability structure */ memset(capa, 0, sizeof(odp_crypto_capability_t));
+ capa->sync_mode = ODP_SUPPORT_PREFERRED; + capa->async_mode = ODP_SUPPORT_YES; + capa->ciphers.bit.null = 1; capa->ciphers.bit.trides_cbc = 1; capa->ciphers.bit.aes_cbc = 1;
-----------------------------------------------------------------------
Summary of changes: platform/linux-generic/odp_crypto.c | 3 +++ test/validation/api/crypto/odp_crypto_test_inp.c | 9 +++++++++ 2 files changed, 12 insertions(+)
hooks/post-receive