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

Function test_ring_enqueue_zc_bulk

dpdk/app/test/test_ring.c:74–89  ·  view source on GitHub ↗

Wrappers around the zero-copy APIs. The wrappers match * the normal enqueue/dequeue API declarations. */

Source from the content-addressed store, hash-verified

72 * the normal enqueue/dequeue API declarations.
73 */
74static unsigned int
75test_ring_enqueue_zc_bulk(struct rte_ring *r, void * const *obj_table,
76 unsigned int n, unsigned int *free_space)
77{
78 uint32_t ret;
79 struct rte_ring_zc_data zcd;
80
81 ret = rte_ring_enqueue_zc_bulk_start(r, n, &zcd, free_space);
82 if (ret != 0) {
83 /* Copy the data to the ring */
84 test_ring_copy_to(&zcd, obj_table, sizeof(void *), ret);
85 rte_ring_enqueue_zc_finish(r, ret);
86 }
87
88 return ret;
89}
90
91static unsigned int
92test_ring_enqueue_zc_bulk_elem(struct rte_ring *r, const void *obj_table,

Callers

nothing calls this directly

Calls 3

test_ring_copy_toFunction · 0.85

Tested by

no test coverage detected