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

Function nb_sym_capabilities_get

dpdk/app/test/test_cryptodev_crosscheck.c:226–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226static uint16_t
227nb_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
239static struct rte_cryptodev_sym_capability_idx
240sym_capability_to_idx(const struct rte_cryptodev_symmetric_capability *cap)

Callers 1

capabilities_inspectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected