From patchwork Wed Jul 29 06:31:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feifei Wang X-Patchwork-Id: 74970 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5E3BAA052B; Wed, 29 Jul 2020 08:31:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 27D8B1BFFE; Wed, 29 Jul 2020 08:31:38 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 33BD910A3; Wed, 29 Jul 2020 08:31:36 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B27CC1FB; Tue, 28 Jul 2020 23:31:35 -0700 (PDT) Received: from net-arm-n1sdp.shanghai.arm.com (net-arm-n1sdp.shanghai.arm.com [10.169.208.213]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9EBF83F71F; Tue, 28 Jul 2020 23:31:33 -0700 (PDT) From: Feifei Wang To: Honnappa Nagarahalli , Konstantin Ananyev Cc: dev@dpdk.org, nd@arm.com, Feifei Wang , stable@dpdk.org Date: Wed, 29 Jul 2020 01:31:04 -0500 Message-Id: <20200729063105.11299-2-feifei.wang2@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200729063105.11299-1-feifei.wang2@arm.com> References: <20200729063105.11299-1-feifei.wang2@arm.com> Subject: [dpdk-dev] [PATCH v1 1/2] ring: fix the misdescription of the param X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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: stable@dpdk.org Signed-off-by: Feifei Wang Reviewed-by: Ruifeng Wang --- 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.