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

Function rte_comp_op_bulk_alloc

dpdk/lib/compressdev/rte_comp.c:196–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196int
197rte_comp_op_bulk_alloc(struct rte_mempool *mempool,
198 struct rte_comp_op **ops, uint16_t nb_ops)
199{
200 int retval;
201 uint16_t i;
202
203 retval = rte_comp_op_raw_bulk_alloc(mempool, ops, nb_ops);
204 if (unlikely(retval != nb_ops))
205 return 0;
206
207 for (i = 0; i < nb_ops; i++)
208 rte_comp_op_reset(ops[i]);
209
210 return nb_ops;
211}
212
213/**
214 * free operation structure

Callers 4

main_loopFunction · 0.85
main_loopFunction · 0.85
test_deflate_comp_runFunction · 0.85
test_deflate_decomp_runFunction · 0.85

Calls 2

rte_comp_op_resetFunction · 0.85

Tested by 4

main_loopFunction · 0.68
main_loopFunction · 0.68
test_deflate_comp_runFunction · 0.68
test_deflate_decomp_runFunction · 0.68