[v4,0/7] fix wrong passed pointer and add check
Message ID | 20200914143350.18650-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 2C95AA04C7; Mon, 14 Sep 2020 16:34:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0AFF81C0C9; Mon, 14 Sep 2020 16:34:04 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id D7FB2DE0 for <dev@dpdk.org>; Mon, 14 Sep 2020 16:34:02 +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 54B30106F; Mon, 14 Sep 2020 07:34:02 -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 09D5C3F718; Mon, 14 Sep 2020 07:34:00 -0700 (PDT) From: Feifei Wang <feifei.wang2@arm.com> To: Cc: dev@dpdk.org, nd@arm.com, Feifei Wang <feifei.wang2@arm.com> Date: Mon, 14 Sep 2020 09:33:43 -0500 Message-Id: <20200914143350.18650-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 v4 0/7] fix wrong passed pointer 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
Sept. 14, 2020, 2:33 p.m. UTC
Several bugs in ring unit tests were identified and fixed. Added data validation on objects after enqueue/dequeue operations for data integration check. Unit tests were enhanced by checking return value of enqueue/dequeue operations and validating data integrity of objects. 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) v3: 1. Adjust the 'check dequeued objects' patch from the last to the first in the series. (Honnappa) 2. Add the new function 'test_ring_mem_cmp to replace 'memset' and print information of enqueue/dequeue elements if validation fails. (Honnappa) 3. Add test to validate the whether the enqueue and dequeue operation is successful for each time. (Honnappa) 4. Expand the scope of application for the macro TEST_RING_VERIF, and replace all ring APIs check with this macro. (Honnappa) v4: 1. Split the 'memcmp' bug fix patch into two patches, one is memcmp issue patch, the other is to add new function 'test_ring_mem_cmp'. (Honnappa) Feifei Wang (7): test/ring: add check to validate dequeued objects test/ring: fix wrong parameter passed to the enqueue APIs test/ring: validate the return value of enq/deq elements test/ring: fix wrong number of enq/deq elements test/ring: fix wrong size used in memcmp test/ring: add new function to validate dequeue data test/ring: improve the application of macro app/test/test_ring.c | 384 ++++++++++++++++++++++--------------------- app/test/test_ring.h | 6 +- 2 files changed, 199 insertions(+), 191 deletions(-)