| 224 | } |
| 225 | |
| 226 | static uint16_t |
| 227 | nb_sym_capabilities_get(const struct rte_cryptodev_capabilities *cap) |
| 228 | { |
| 229 | uint16_t nb_caps = 0; |
| 230 | |
| 231 | for (; cap->op != RTE_CRYPTO_OP_TYPE_UNDEFINED; cap++) { |
| 232 | if (cap->op == RTE_CRYPTO_OP_TYPE_SYMMETRIC) |
| 233 | nb_caps += 1; |
| 234 | } |
| 235 | |
| 236 | return nb_caps; |
| 237 | } |
| 238 | |
| 239 | static struct rte_cryptodev_sym_capability_idx |
| 240 | sym_capability_to_idx(const struct rte_cryptodev_symmetric_capability *cap) |
no outgoing calls
no test coverage detected