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:
8384f0e
)
eventdev: fix MP/MC tail updates in event ring
author
Mattias Rönnblom
<hofors@lysator.liu.se>
Tue, 3 Apr 2018 08:19:03 +0000
(10:19 +0200)
committer
Thomas Monjalon
<thomas@monjalon.net>
Mon, 16 Apr 2018 08:10:27 +0000
(10:10 +0200)
rte_event_ring enqueue and dequeue tail updates were hardcoded for a
SC/SP configuration.
Fixes:
dc39e2f359b5
("eventdev: add ring structure for events")
Cc: stable@dpdk.org
Signed-off-by: Mattias Rönnblom <hofors@lysator.liu.se>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eventdev/rte_event_ring.h
patch
|
blob
|
history
diff --git
a/lib/librte_eventdev/rte_event_ring.h
b/lib/librte_eventdev/rte_event_ring.h
index
29d4228
..
827a320
100644
(file)
--- a/
lib/librte_eventdev/rte_event_ring.h
+++ b/
lib/librte_eventdev/rte_event_ring.h
@@
-99,7
+99,7
@@
rte_event_ring_enqueue_burst(struct rte_event_ring *r,
ENQUEUE_PTRS(&r->r, &r[1], prod_head, events, n, struct rte_event);
- update_tail(&r->r.prod, prod_head, prod_next,
1
, 1);
+ update_tail(&r->r.prod, prod_head, prod_next,
r->r.prod.single
, 1);
end:
if (free_space != NULL)
*free_space = free_entries - n;
@@
-140,7
+140,7
@@
rte_event_ring_dequeue_burst(struct rte_event_ring *r,
DEQUEUE_PTRS(&r->r, &r[1], cons_head, events, n, struct rte_event);
- update_tail(&r->r.cons, cons_head, cons_next,
1
, 0);
+ update_tail(&r->r.cons, cons_head, cons_next,
r->r.cons.single
, 0);
end:
if (available != NULL)