[dpdk-stable] patch 'test/lpm: fix measured cycles for delete' has been queued to LTS release 18.11.6

Kevin Traynor ktraynor at redhat.com
Tue Dec 3 19:26:53 CET 2019


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 rebasing
(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/6664c40c4db87875b7d903b313998ca7defde69b

Thanks.

Kevin.

---
>From 6664c40c4db87875b7d903b313998ca7defde69b Mon Sep 17 00:00:00 2001
From: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
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 <honnappa.nagarahalli at arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
Tested-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
---
 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)
 			(count * 100.0) / (double)(ITERATIONS * BATCH_SIZE));
 
-	/* Delete */
+	/* Measure Delete */
 	status = 0;
 	begin = rte_rdtsc();
@@ -471,5 +471,5 @@ test_lpm_perf(void)
 	}
 
-	total_time += rte_rdtsc() - begin;
+	total_time = rte_rdtsc() - begin;
 
 	printf("Average LPM Delete: %g cycles\n",
-- 
2.21.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2019-12-03 17:29:54.336331971 +0000
+++ 0044-test-lpm-fix-measured-cycles-for-delete.patch	2019-12-03 17:29:51.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 at 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



More information about the stable mailing list