MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_ring_mp_enqueue_burst

Function rte_ring_mp_enqueue_burst

dpdk/lib/ring/rte_ring.h:680–686  ·  view source on GitHub ↗

* Enqueue several objects on the ring (multi-producers safe). * * This function uses a "compare and set" instruction to move the * producer index atomically. * * @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 the obj_table. * @param free_space * if non

Source from the content-addressed store, hash-verified

678 * - n: Actual number of objects enqueued.
679 */
680static __rte_always_inline unsigned int
681rte_ring_mp_enqueue_burst(struct rte_ring *r, void * const *obj_table,
682 unsigned int n, unsigned int *free_space)
683{
684 return rte_ring_mp_enqueue_burst_elem(r, obj_table, sizeof(void *),
685 n, free_space);
686}
687
688/**
689 * Enqueue several objects on a ring (NOT multi-producers safe).

Callers 5

send_burst_mpFunction · 0.85
send_burst_mp_nodropFunction · 0.85
test_ring_enqueueFunction · 0.85

Calls 1

Tested by 1

test_ring_enqueueFunction · 0.68