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

Function test_ring_copy_to

dpdk/app/test/test_ring.h:71–85  ·  view source on GitHub ↗

Copy to the ring memory */

Source from the content-addressed store, hash-verified

69
70/* Copy to the ring memory */
71static inline void
72test_ring_copy_to(struct rte_ring_zc_data *zcd, void * const *src, int esize,
73 unsigned int num)
74{
75 test_ring_mem_copy(zcd->ptr1, src, esize, zcd->n1);
76 if (zcd->n1 != num) {
77 if (esize == -1)
78 src = src + zcd->n1;
79 else
80 src = (void * const *)((const uint32_t *)src +
81 (zcd->n1 * esize / sizeof(uint32_t)));
82 test_ring_mem_copy(zcd->ptr2, src,
83 esize, num - zcd->n1);
84 }
85}
86
87/* Copy from the ring memory */
88static inline void

Callers 6

_st_ring_enqueue_bulkFunction · 0.85
_st_ring_enqueue_bulkFunction · 0.85

Calls 1

test_ring_mem_copyFunction · 0.85

Tested by

no test coverage detected