Copy from the ring memory */
| 86 | |
| 87 | /* Copy from the ring memory */ |
| 88 | static inline void |
| 89 | test_ring_copy_from(struct rte_ring_zc_data *zcd, void *dst, int esize, |
| 90 | unsigned int num) |
| 91 | { |
| 92 | test_ring_mem_copy(dst, zcd->ptr1, esize, zcd->n1); |
| 93 | |
| 94 | if (zcd->n1 != num) { |
| 95 | dst = test_ring_inc_ptr(dst, esize, zcd->n1); |
| 96 | test_ring_mem_copy(dst, zcd->ptr2, esize, num - zcd->n1); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | static inline unsigned int |
| 101 | test_ring_enqueue(struct rte_ring *r, void **obj, int esize, unsigned int n, |
no test coverage detected