* 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
| 728 | * - n: Actual number of objects enqueued. |
| 729 | */ |
| 730 | static __rte_always_inline unsigned int |
| 731 | rte_ring_enqueue_burst(struct rte_ring *r, void * const *obj_table, |
| 732 | unsigned int n, unsigned int *free_space) |
| 733 | { |
| 734 | return rte_ring_enqueue_burst_elem(r, obj_table, sizeof(void *), |
| 735 | n, free_space); |
| 736 | } |
| 737 | |
| 738 | /** |
| 739 | * Dequeue several objects from a ring (multi-consumers safe). When the request |