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

Function rte_crypto_op_bulk_alloc

dpdk/lib/cryptodev/rte_crypto.h:337–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 */
336
337static inline unsigned
338rte_crypto_op_bulk_alloc(struct rte_mempool *mempool,
339 enum rte_crypto_op_type type,
340 struct rte_crypto_op **ops, uint16_t nb_ops)
341{
342 int i;
343
344 if (unlikely(__rte_crypto_op_raw_bulk_alloc(mempool, type, ops, nb_ops)
345 != nb_ops))
346 return 0;
347
348 for (i = 0; i < nb_ops; i++)
349 __rte_crypto_op_reset(ops[i], type);
350
351 return nb_ops;
352}
353
354
355

Calls 2

__rte_crypto_op_resetFunction · 0.85

Tested by 3