patches for DPDK stable branches
 help / color / Atom feed
* [dpdk-stable] [PATCH v2] lib/ring: fix bulk enqueue API to allow HTS/RTS modes
@ 2020-06-10  5:57 Feifei Wang
  2020-07-01  8:44 ` [dpdk-stable] [dpdk-dev] " David Marchand
  0 siblings, 1 reply; 2+ messages in thread
From: Feifei Wang @ 2020-06-10  5:57 UTC (permalink / raw)
  To: Honnappa Nagarahalli, Konstantin Ananyev; +Cc: dev, nd, Feifei Wang, stable

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 <>
Reviewed-by: Ruifeng Wang <>
Acked-by: Honnappa Nagarahalli <>

V2: update commit message as Honnappa suggested.

 lib/librte_ring/rte_ring_elem.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/librte_ring/rte_ring_elem.h b/lib/librte_ring/rte_ring_elem.h
index a5a4c46f9..469aee7da 100644
--- a/lib/librte_ring/rte_ring_elem.h
+++ b/lib/librte_ring/rte_ring_elem.h
@@ -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) {
 		return rte_ring_mp_enqueue_bulk_elem(r, obj_table, esize, n,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10  5:57 [dpdk-stable] [PATCH v2] lib/ring: fix bulk enqueue API to allow HTS/RTS modes Feifei Wang
2020-07-01  8:44 ` [dpdk-stable] [dpdk-dev] " David Marchand

patches for DPDK stable branches

Archives are clonable:
	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox