| 711 | } |
| 712 | |
| 713 | static int |
| 714 | check_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 | |
| 735 | int |
| 736 | check_cipher_capabilities_supported(const enum rte_crypto_cipher_algorithm *ciphers, |
no test coverage detected