git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50959a8
)
ring: fix bulk enqueue for HTS/RTS ring modes
author
Feifei Wang
<feifei.wang2@arm.com>
Wed, 10 Jun 2020 05:57:04 +0000
(13:57 +0800)
committer
David Marchand
<david.marchand@redhat.com>
Wed, 1 Jul 2020 08:41:19 +0000
(10:41 +0200)
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 <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ring/rte_ring_elem.h
patch
|
blob
|
history
diff --git
a/lib/librte_ring/rte_ring_elem.h
b/lib/librte_ring/rte_ring_elem.h
index
a5a4c46
..
469aee7
100644
(file)
--- 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) {
case RTE_RING_SYNC_MT:
return rte_ring_mp_enqueue_bulk_elem(r, obj_table, esize, n,