| 7904 | } |
| 7905 | |
| 7906 | static int |
| 7907 | test_mixed_check_if_unsupported(const struct mixed_cipher_auth_test_data *tdata) |
| 7908 | { |
| 7909 | uint8_t dev_id = testsuite_params.valid_devs[0]; |
| 7910 | |
| 7911 | struct rte_cryptodev_sym_capability_idx cap_idx; |
| 7912 | |
| 7913 | /* Check if device supports particular cipher algorithm */ |
| 7914 | cap_idx.type = RTE_CRYPTO_SYM_XFORM_CIPHER; |
| 7915 | cap_idx.algo.cipher = tdata->cipher_algo; |
| 7916 | if (rte_cryptodev_sym_capability_get(dev_id, &cap_idx) == NULL) |
| 7917 | return TEST_SKIPPED; |
| 7918 | |
| 7919 | /* Check if device supports particular hash algorithm */ |
| 7920 | cap_idx.type = RTE_CRYPTO_SYM_XFORM_AUTH; |
| 7921 | cap_idx.algo.auth = tdata->auth_algo; |
| 7922 | if (rte_cryptodev_sym_capability_get(dev_id, &cap_idx) == NULL) |
| 7923 | return TEST_SKIPPED; |
| 7924 | |
| 7925 | return 0; |
| 7926 | } |
| 7927 | |
| 7928 | static int |
| 7929 | test_mixed_auth_cipher(const struct mixed_cipher_auth_test_data *tdata, |
no test coverage detected