[v2,0/4] wrong pointer passed and add check
Message ID | 20200805061421.13037-1-feifei.wang2@arm.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 21B03A053A; Wed, 5 Aug 2020 08:15:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 53DFF1BFF7; Wed, 5 Aug 2020 08:15:02 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id D368D1B203 for <dev@dpdk.org>; Wed, 5 Aug 2020 08:15:00 +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 0CACBD6E; Tue, 4 Aug 2020 23:15:00 -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 AD6B43F718; Tue, 4 Aug 2020 23:14:58 -0700 (PDT) From: Feifei Wang <feifei.wang2@arm.com> To: Cc: dev@dpdk.org, nd@arm.com, Feifei Wang <feifei.wang2@arm.com> Date: Wed, 5 Aug 2020 01:14:17 -0500 Message-Id: <20200805061421.13037-1-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 v2 0/4] wrong pointer passed and add check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Feifei Wang
Aug. 5, 2020, 6:14 a.m. UTC
Fix wrong pointer passed problems when using test_ring_enqueue APIs to enqueue one element into the ring. Furthermore, add check to validate the dequeued objects in test_ring.c when calling test_ring_enqueue APIs. v2: 1. add check to validate the dequeued objects in test_ring.c and fix some bugs of it. (David/Honnappa) 2. remove the patch to change the description for the param of rte_ring_[sp/mp]_enqueue APIs. (David/Konstantin/Honnappa) Feifei Wang (4): test/ring: fix wrong parameter passed to the enqueue APIs test/ring: fix wrong size used in memcmp test/ring: fix the wrong number of enq/deq elements test/ring: add check to validate the dequeued objects app/test/test_ring.c | 180 +++++++++++++++++++++++++++++++------------ app/test/test_ring.h | 6 +- 2 files changed, 135 insertions(+), 51 deletions(-)