MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_capabilities_supported

Function check_capabilities_supported

dpdk/app/test/test_cryptodev.c:713–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711}
712
713static int
714check_capabilities_supported(enum rte_crypto_sym_xform_type type,
715 const int *algs, uint16_t num_algs)
716{
717 uint8_t dev_id = testsuite_params.valid_devs[0];
718 bool some_alg_supported = FALSE;
719 uint16_t i;
720
721 for (i = 0; i < num_algs && !some_alg_supported; i++) {
722 struct rte_cryptodev_sym_capability_idx alg = {
723 type, {algs[i]}
724 };
725 if (rte_cryptodev_sym_capability_get(dev_id,
726 &alg) != NULL)
727 some_alg_supported = TRUE;
728 }
729 if (!some_alg_supported)
730 return TEST_SKIPPED;
731
732 return 0;
733}
734
735int
736check_cipher_capabilities_supported(const enum rte_crypto_cipher_algorithm *ciphers,

Calls 1

Tested by

no test coverage detected