ring: fix comment for __rte_ring_move_cons_head()
PATCH 1/1 ring: fix comment for __rte_ring_move_cons_head()
Change "enqueue" to "dequeue" because the __rte_ring_move_cons_head() function is updating the consumer head for dequeue.
Fixes 0dfc98c507b1 ("ring: separate out head index manipulation")
Signed-off-by Cian Ferriter <[email protected]>
--- lib/ring/rte_ring_c11_pvt.h | 2 +- lib/ring/rte_ring_generic_pvt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
lib/ring/rte_ring_c11_pvt.h +1 -1
@@ -111,7 +111,7 @@ __rte_ring_move_prod_head(struct rte_ring *r, unsigned int is_sp,* @param is_sc * Indicates whether multi-consumer path is needed or not * @param n -* The number of elements we will want to enqueue, i.e. how far should the +* The number of elements we will want to dequeue, i.e. how far should the * head be moved * @param behavior * RTE_RING_QUEUE_FIXED: Dequeue a fixed number of items from a ring
lib/ring/rte_ring_generic_pvt.h +1 -1
@@ -106,7 +106,7 @@ __rte_ring_move_prod_head(struct rte_ring *r, unsigned int is_sp,* @param is_sc * Indicates whether multi-consumer path is needed or not * @param n -* The number of elements we will want to enqueue, i.e. how far should the +* The number of elements we will want to dequeue, i.e. how far should the * head be moved * @param behavior * RTE_RING_QUEUE_FIXED: Dequeue a fixed number of items from a ring
Signature · 1 line
2.32.0
<snip>
Quoted 9 lines
Change "enqueue" to "dequeue" because the
__rte_ring_move_cons_head()function is updating the consumer head for dequeue.Fixes 0dfc98c507b1 ("ring: separate out head index manipulation")Signed-off-by Cian Ferriter <[email protected]>
LGTM
Quoted 35 lines
--- lib/ring/rte_ring_c11_pvt.h | 2 +- lib/ring/rte_ring_generic_pvt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)lib/ring/rte_ring_c11_pvt.h index renamed from lib/ring/rte_ring_c11_pvt.h +0
-0
37e0b2afd6..f895950df4100644lib/ring/rte_ring_c11_pvt.h +1
-1@@ -111,7 +111,7 @@ __rte_ring_move_prod_head(struct rte_ring *r,unsigned int is_sp, * @param is_sc * Indicates whether multi-consumer path is needed or not * @param n - * The number of elements we will want to enqueue, i.e. how far should the + * The number of elements we will want to dequeue, i.e. how far should the * head be moved * @param behavior*
RTE_RING_QUEUE_FIXED: Dequeue a fixed number of items from a ringlib/ring/rte_ring_generic_pvt.h +1
-1@@ -106,7 +106,7 @@ __rte_ring_move_prod_head(struct rte_ring *r,unsigned int is_sp, * @param is_sc * Indicates whether multi-consumer path is needed or not * @param n - * The number of elements we will want to enqueue, i.e. how far should the + * The number of elements we will want to dequeue, i.e. how far should the * head be moved * @param behavior*
RTE_RING_QUEUE_FIXED: Dequeue a fixed number of items from a ring
--
2.32.0
Thomas Monjalon
AppliedQuoted 10 lines
Quoted 8 lines
Change "enqueue" to "dequeue" because the
__rte_ring_move_cons_head()function is updating the consumer head for dequeue.Fixes 0dfc98c507b1 ("ring: separate out head index manipulation")Signed-off-by Cian Ferriter <[email protected]>LGTM
Applied, thanks.