* Enqueue several objects on a ring. * * This function calls the multi-producer or the single-producer * version depending on the default behavior that was specified at * ring creation time (see flags). * * @param r * A pointer to the ring structure. * @param obj_table * A pointer to a table of void * pointers (objects). * @param n * The number of objects to add in the ring from t
| 273 | * The number of objects enqueued, either 0 or n |
| 274 | */ |
| 275 | static __rte_always_inline unsigned int |
| 276 | rte_ring_enqueue_bulk(struct rte_ring *r, void * const *obj_table, |
| 277 | unsigned int n, unsigned int *free_space) |
| 278 | { |
| 279 | return rte_ring_enqueue_bulk_elem(r, obj_table, sizeof(void *), |
| 280 | n, free_space); |
| 281 | } |
| 282 | |
| 283 | /** |
| 284 | * Enqueue one object on a ring (multi-producers safe). |