From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D635BA2F67 for ; Fri, 4 Oct 2019 13:14:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7D7191C1E8; Fri, 4 Oct 2019 13:14:50 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id AED4F1C1E8; Fri, 4 Oct 2019 13:14:48 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Oct 2019 04:14:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,256,1566889200"; d="scan'208,217";a="367336250" Received: from vmedvedk-mobl.ger.corp.intel.com (HELO [10.237.220.55]) ([10.237.220.55]) by orsmga005.jf.intel.com with ESMTP; 04 Oct 2019 04:14:43 -0700 To: Honnappa Nagarahalli , bruce.richardson@intel.com Cc: dev@dpdk.org, ruifeng.wang@arm.com, nd@arm.com, stable@dpdk.org References: <20191001052358.32157-1-honnappa.nagarahalli@arm.com> <20191001053253.32327-1-honnappa.nagarahalli@arm.com> From: "Medvedkin, Vladimir" Message-ID: Date: Fri, 4 Oct 2019 12:14:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191001053253.32327-1-honnappa.nagarahalli@arm.com> Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-stable] [PATCH v2] test/lpm: reset total time X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Acked-by: Vladimir Medvedkin Tested-by: Vladimir Medvedkin On 01/10/2019 06:32, Honnappa Nagarahalli wrote: > total_time needs to be reset to measure the cycles for delete API. > > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org > > Signed-off-by: Honnappa Nagarahalli > Reviewed-by: Ruifeng Wang > --- > v2 - Corrected checkpatch issue > > app/test/test_lpm_perf.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c > index a9f02d983..9fa02f9df 100644 > --- a/app/test/test_lpm_perf.c > +++ b/app/test/test_lpm_perf.c > @@ -937,7 +937,7 @@ test_lpm_perf(void) > (double)total_time / ((double)ITERATIONS * BATCH_SIZE), > (count * 100.0) / (double)(ITERATIONS * BATCH_SIZE)); > > - /* Delete */ > + /* Measure Delete */ > status = 0; > begin = rte_rdtsc(); > > @@ -947,7 +947,7 @@ test_lpm_perf(void) > large_route_table[i].depth); > } > > - total_time += rte_rdtsc() - begin; > + total_time = rte_rdtsc() - begin; > > printf("Average LPM Delete: %g cycles\n", > (double)total_time / NUM_ROUTE_ENTRIES); -- Regards, Vladimir