From patchwork Fri Dec 20 04:45:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 182210 Delivered-To: patch@linaro.org Received: by 2002:a92:1f98:0:0:0:0:0 with SMTP id f24csp58675ilf; Thu, 19 Dec 2019 20:47:36 -0800 (PST) X-Google-Smtp-Source: APXvYqw/rdX2YGGLnV6whk82MwyfxC70zFcOyd5e/mRgZAY4oxJSeqWFVOCUL6OHsqrXF9Wt+IVe X-Received: by 2002:a17:907:20ef:: with SMTP id rh15mr13897010ejb.325.1576817256153; Thu, 19 Dec 2019 20:47:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576817256; cv=none; d=google.com; s=arc-20160816; b=YvLFyEiTOdE4j0CpkylhTs3EXOaVnOj2sqZE99jyuiXewCDj68VG7qbKy11pME6+p8 9UpZHbfqkHAjlunZRSCKUJbfKrVPLFO/OYgK6jJkb+/mo6TGDsTbjfYHnBpPdv4M/QnZ MHwCMy58X0HjotNQ4TW/cCaKP67T5btlsvEG+/zciWAHs2v5BZDRN3Ho+ZigQ+W3R6KV 6QfhQ3LjZ5HOwwdxv06Qk+H2ALgdGsibc6/3uXByPABVPGa50/Ul2SWqUXTS57ti/u6X WmNhZ5c7t2Q6Dd6M4bybeM5Sx1K2LbKVqsmkuID6kd3+ZY6QYHY1BAU3g4IegCmkNO4Z yzyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=ecTZ7AEVB1bcTxEzrydez0CXaB40zDNTWOK/ccRlZLE=; b=heQYT5r0oW/cByUIgZlOnjzbYRznKi+iv7I+0Q/4FL8XVmgxQb8f0kzeUKLBJBAXQR 1kFep4w9olnqI+9EXEJ2u0RgkzbDdtqSn3lcRC7AvTLjalhaR+v2yQAA0u/q3YdZiWGU NZ4hIZLxDB3sXtzuigSupcE3tKoGiBfgwhSsalSCsGCwDS9lTEkE5Fq2FI+ntVZHwFId oxhzbVAx2x0HkP8G6P2XDoavK0IjHJhmlByy6jv+vJ0bxxn07odVcLPUt3R1/IwJW/gt fOMrbHAUV7+c4+MKHNotmqbna9KkcmGcbn065RjtnK5jj/kOQu0NSJW5tw/nDmUATZVq 2Kfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id k1si5815252eja.160.2019.12.19.20.47.35; Thu, 19 Dec 2019 20:47:36 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A8F761BFB4; Fri, 20 Dec 2019 05:46:21 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 4B38B1BF7C for ; Fri, 20 Dec 2019 05:45:59 +0100 (CET) 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 972351435; Thu, 19 Dec 2019 20:45:57 -0800 (PST) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.14.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8D50C3F86C; Thu, 19 Dec 2019 20:45:57 -0800 (PST) From: Honnappa Nagarahalli To: olivier.matz@6wind.com, sthemmin@microsoft.com, jerinj@marvell.com, bruce.richardson@intel.com, david.marchand@redhat.com, pbhagavatula@marvell.com, konstantin.ananyev@intel.com, honnappa.nagarahalli@arm.com Cc: dev@dpdk.org, dharmik.thakkar@arm.com, ruifeng.wang@arm.com, gavin.hu@arm.com, nd@arm.com Date: Thu, 19 Dec 2019 22:45:19 -0600 Message-Id: <20191220044524.32910-13-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191220044524.32910-1-honnappa.nagarahalli@arm.com> References: <20190906190510.11146-1-honnappa.nagarahalli@arm.com> <20191220044524.32910-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v7 12/17] test/ring: modify bulk enq/deq perf test cases 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" Modify test cases to test legacy and rte_ring_xxx_elem APIs for bulk enqueue/dequeue test cases. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu --- app/test/test_ring_perf.c | 57 ++++++++++----------------------------- 1 file changed, 14 insertions(+), 43 deletions(-) -- 2.17.1 diff --git a/app/test/test_ring_perf.c b/app/test/test_ring_perf.c index 508c688dc..8a543b6f0 100644 --- a/app/test/test_ring_perf.c +++ b/app/test/test_ring_perf.c @@ -433,46 +433,6 @@ test_burst_bulk_enqueue_dequeue(struct rte_ring *r, const int esize, return 0; } -/* Times enqueue and dequeue on a single lcore */ -static void -test_bulk_enqueue_dequeue(struct rte_ring *r) -{ - const unsigned iter_shift = 23; - const unsigned iterations = 1<