When enqueue one element to the ring, the param "obj" should be the object to be added into the ring. The object is of type void*.
Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: Feifei Wang <feifei.wa...@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.w...@arm.com> --- lib/librte_ring/rte_ring.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h index da17ed6d7..418536b61 100644 --- a/lib/librte_ring/rte_ring.h +++ b/lib/librte_ring/rte_ring.h @@ -276,7 +276,7 @@ rte_ring_enqueue_bulk(struct rte_ring *r, void * const *obj_table, * @param r * A pointer to the ring structure. * @param obj - * A pointer to the object to be added. + * A pointer (object) to be added. * @return * - 0: Success; objects enqueued. * - -ENOBUFS: Not enough room in the ring to enqueue; no object is enqueued. @@ -293,7 +293,7 @@ rte_ring_mp_enqueue(struct rte_ring *r, void *obj) * @param r * A pointer to the ring structure. * @param obj - * A pointer to the object to be added. + * A pointer (object) to be added. * @return * - 0: Success; objects enqueued. * - -ENOBUFS: Not enough room in the ring to enqueue; no object is enqueued. @@ -314,7 +314,7 @@ rte_ring_sp_enqueue(struct rte_ring *r, void *obj) * @param r * A pointer to the ring structure. * @param obj - * A pointer to the object to be added. + * A pointer (object) to be added. * @return * - 0: Success; objects enqueued. * - -ENOBUFS: Not enough room in the ring to enqueue; no object is enqueued. -- 2.17.1