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

Function rte_ring_enqueue_bulk

dpdk/lib/ring/rte_ring.h:275–281  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

273 * The number of objects enqueued, either 0 or n
274 */
275static __rte_always_inline unsigned int
276rte_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).

Callers 10

bucket_enqueueFunction · 0.85
bucket_dequeueFunction · 0.85
reserve_fill_queue_cpFunction · 0.85
af_xdp_tx_cpFunction · 0.85
eth_rx_queue_setupFunction · 0.85
test_ring_enqueueFunction · 0.85
_cancel_producer_burstFunction · 0.85
flush_rx_queueFunction · 0.85
flush_rx_queueFunction · 0.85

Calls 1

Tested by 3

test_ring_enqueueFunction · 0.68
_cancel_producer_burstFunction · 0.68