Skip to content

Commit

Permalink
ring: fix Doxygen comment of internal function
Browse files Browse the repository at this point in the history
[ upstream commit 0203a14 ]

Change "enqueue" to "dequeue" because the __rte_ring_move_cons_head()
function is updating the consumer head for dequeue.

Fixes: 0dfc98c ("ring: separate out head index manipulation")

Signed-off-by: Cian Ferriter <cian.ferriter@intel.com>
Acked-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
  • Loading branch information
cferriter authored and cpaelzer committed Nov 30, 2021
1 parent 3312677 commit 701d473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/librte_ring/rte_ring_c11_mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/librte_ring/rte_ring_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,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
Expand Down

0 comments on commit 701d473

Please sign in to comment.