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

Function test_ring_dequeue_zc_bulk

dpdk/app/test/test_ring.c:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static unsigned int
145test_ring_dequeue_zc_bulk(struct rte_ring *r, void **obj_table,
146 unsigned int n, unsigned int *available)
147{
148 unsigned int ret;
149 struct rte_ring_zc_data zcd;
150
151 ret = rte_ring_dequeue_zc_bulk_start(r, n, &zcd, available);
152 if (ret != 0) {
153 /* Copy the data from the ring */
154 test_ring_copy_from(&zcd, obj_table, sizeof(void *), ret);
155 rte_ring_dequeue_zc_finish(r, ret);
156 }
157
158 return ret;
159}
160
161static unsigned int
162test_ring_dequeue_zc_bulk_elem(struct rte_ring *r, void *obj_table,

Callers

nothing calls this directly

Calls 3

test_ring_copy_fromFunction · 0.85

Tested by

no test coverage detected