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

Function test_ring_dequeue_zc_burst

dpdk/app/test/test_ring.c:179–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179static unsigned int
180test_ring_dequeue_zc_burst(struct rte_ring *r, void **obj_table,
181 unsigned int n, unsigned int *available)
182{
183 unsigned int ret;
184 struct rte_ring_zc_data zcd;
185
186 ret = rte_ring_dequeue_zc_burst_start(r, n, &zcd, available);
187 if (ret != 0) {
188 /* Copy the data from the ring */
189 test_ring_copy_from(&zcd, obj_table, sizeof(void *), ret);
190 rte_ring_dequeue_zc_finish(r, ret);
191 }
192
193 return ret;
194}
195
196static unsigned int
197test_ring_dequeue_zc_burst_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