lib/ring: fix bulk enqueue API to allow HTS/RTS modes
PATCH v2 1/1 lib/ring: fix bulk enqueue API to allow HTS/RTS modes
Remove the unwanted call to "_rte_ring_do_enqueue_elem" to allow for correct handling of RTS/HTS modes.
Fixes e6ba4731c0f3 ("ring: introduce RTS ring mode")
Signed-off-by Feifei Wang <[email protected]>
Reviewed-by Ruifeng Wang <[email protected]>
---
V2: update commit message as Honnappa suggested.
lib/librte_ring/rte_ring_elem.h | 3 --- 1 file changed, 3 deletions(-)
lib/librte_ring/rte_ring_elem.h +0 -3
@@ -578,9 +578,6 @@ static __rte_always_inline unsigned int rte_ring_enqueue_bulk_elem(struct rte_ring *r, const void *obj_table, unsigned int esize, unsigned int n, unsigned int *free_space) { - return __rte_ring_do_enqueue_elem(r, obj_table, esize, n, - RTE_RING_QUEUE_FIXED, r->prod.sync_type, free_space); - switch (r->prod.sync_type) { case RTE_RING_SYNC_MT: return rte_ring_mp_enqueue_bulk_elem(r, obj_table, esize, n,
Signature · 1 line
2.17.1
Quoted 10 lines · Feifei Wang
Remove the unwanted call to "
_rte_ring_do_enqueue_elem" to allow for correct handling of RTS/HTS modes.Fixes e6ba4731c0f3 ("ring: introduce RTS ring mode")Signed-off-by Feifei Wang <[email protected]>Reviewed-by Ruifeng Wang <[email protected]>
Kept ack from Konstantin on v1.
Applied, thanks.
Signature · 1 line
David Marchand