This function is placed here as it is required for both * performance and functional tests. */
| 31 | * performance and functional tests. |
| 32 | */ |
| 33 | static inline struct rte_ring* |
| 34 | test_ring_create(const char *name, int esize, unsigned int count, |
| 35 | int socket_id, unsigned int flags) |
| 36 | { |
| 37 | /* Legacy queue APIs? */ |
| 38 | if (esize == -1) |
| 39 | return rte_ring_create(name, count, socket_id, flags); |
| 40 | else |
| 41 | return rte_ring_create_elem(name, esize, count, |
| 42 | socket_id, flags); |
| 43 | } |
| 44 | |
| 45 | static inline void* |
| 46 | test_ring_inc_ptr(void *obj, int esize, unsigned int n) |
no test coverage detected