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 4C014A04B5 for ; Tue, 3 Dec 2019 19:28:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 429511BF97; Tue, 3 Dec 2019 19:28:55 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id DD1D71BFA8 for ; Tue, 3 Dec 2019 19:28:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575397733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TB74sGWaIZdhmI5Z1PjDjXLN0sLvLXJEJHJdsVeEdts=; b=TtKUDZsvQZotm8S/yY+gqLPuZkJB274x8AhmDA4kdolhU+vbTMaLvRfpyoFFW6TZ61Boew p1IQsJBBKhxXqcmBRJLlC414nYNUDbC24HEnrU2xf74GR7U3JpT2+3hzesnikKS0W7nFGV WLW1ldTZnbVUIvms18g6SHm3oKDszog= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-175--GVtPFbBML-F5_gQeRujtg-1; Tue, 03 Dec 2019 13:28:50 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 33E528017CC; Tue, 3 Dec 2019 18:28:49 +0000 (UTC) Received: from rh.redhat.com (ovpn-117-10.ams2.redhat.com [10.36.117.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id F380F5C240; Tue, 3 Dec 2019 18:28:47 +0000 (UTC) From: Kevin Traynor To: Honnappa Nagarahalli Cc: Ruifeng Wang , Vladimir Medvedkin , dpdk stable Date: Tue, 3 Dec 2019 18:26:53 +0000 Message-Id: <20191203182714.17297-44-ktraynor@redhat.com> In-Reply-To: <20191203182714.17297-1-ktraynor@redhat.com> References: <20191203182714.17297-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: -GVtPFbBML-F5_gQeRujtg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'test/lpm: fix measured cycles for delete' has been queued to LTS release 18.11.6 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" Hi, FYI, your patch has been queued to LTS release 18.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/10/19. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/6664c40c4db87875b7= d903b313998ca7defde69b Thanks. Kevin. --- >From 6664c40c4db87875b7d903b313998ca7defde69b Mon Sep 17 00:00:00 2001 From: Honnappa Nagarahalli Date: Tue, 1 Oct 2019 00:32:53 -0500 Subject: [PATCH] test/lpm: fix measured cycles for delete [ upstream commit c425fb6b9b3264dfe5d212fe80151cfd800b907c ] total_time needs to be reset to measure the cycles for delete API. Fixes: af75078fece3 ("first public release") Signed-off-by: Honnappa Nagarahalli Reviewed-by: Ruifeng Wang Acked-by: Vladimir Medvedkin Tested-by: Vladimir Medvedkin --- test/test/test_lpm_perf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test/test_lpm_perf.c b/test/test/test_lpm_perf.c index 3b98ce0c8..e4d29a725 100644 --- a/test/test/test_lpm_perf.c +++ b/test/test/test_lpm_perf.c @@ -461,5 +461,5 @@ test_lpm_perf(void) =09=09=09(count * 100.0) / (double)(ITERATIONS * BATCH_SIZE)); =20 -=09/* Delete */ +=09/* Measure Delete */ =09status =3D 0; =09begin =3D rte_rdtsc(); @@ -471,5 +471,5 @@ test_lpm_perf(void) =09} =20 -=09total_time +=3D rte_rdtsc() - begin; +=09total_time =3D rte_rdtsc() - begin; =20 =09printf("Average LPM Delete: %g cycles\n", --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-12-03 17:29:54.336331971 +0000 +++ 0044-test-lpm-fix-measured-cycles-for-delete.patch=092019-12-03 17:29:5= 1.767749599 +0000 @@ -1 +1 @@ -From c425fb6b9b3264dfe5d212fe80151cfd800b907c Mon Sep 17 00:00:00 2001 +From 6664c40c4db87875b7d903b313998ca7defde69b Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit c425fb6b9b3264dfe5d212fe80151cfd800b907c ] + @@ -9 +10,0 @@ -Cc: stable@dpdk.org @@ -16 +17 @@ - app/test/test_lpm_perf.c | 4 ++-- + test/test/test_lpm_perf.c | 4 ++-- @@ -19,4 +20,4 @@ -diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c -index 77eea66ad..a2578fe90 100644 ---- a/app/test/test_lpm_perf.c -+++ b/app/test/test_lpm_perf.c +diff --git a/test/test/test_lpm_perf.c b/test/test/test_lpm_perf.c +index 3b98ce0c8..e4d29a725 100644 +--- a/test/test/test_lpm_perf.c ++++ b/test/test/test_lpm_perf.c