Wrappers around the zero-copy APIs. The wrappers match * the normal enqueue/dequeue API declarations. */
| 72 | * the normal enqueue/dequeue API declarations. |
| 73 | */ |
| 74 | static unsigned int |
| 75 | test_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 | |
| 91 | static unsigned int |
| 92 | test_ring_enqueue_zc_bulk_elem(struct rte_ring *r, const void *obj_table, |
nothing calls this directly
no test coverage detected