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

Function test_ring_enqueue_zc_burst

dpdk/app/test/test_ring.c:109–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static unsigned int
110test_ring_enqueue_zc_burst(struct rte_ring *r, void * const *obj_table,
111 unsigned int n, unsigned int *free_space)
112{
113 unsigned int ret;
114 struct rte_ring_zc_data zcd;
115
116 ret = rte_ring_enqueue_zc_burst_start(r, n, &zcd, free_space);
117 if (ret != 0) {
118 /* Copy the data to the ring */
119 test_ring_copy_to(&zcd, obj_table, sizeof(void *), ret);
120 rte_ring_enqueue_zc_finish(r, ret);
121 }
122
123 return ret;
124}
125
126static unsigned int
127test_ring_enqueue_zc_burst_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