[PATCH] app/test: lpm6 perf autotest fix lpm delete total time

Su Sai spiderdetective.ss at gmail.com
Wed Aug 19 04:28:44 CEST 2026


Make total_time from '+='' to '=' when test rte_lpm6_delete

Signed-off-by: Su Sai <spiderdetective.ss at gmail.com>
---
 .mailmap                  | 1 +
 app/test/test_lpm6_perf.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index fcb3d1bb3f..1bd625811b 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1644,6 +1644,7 @@ Sunyang Wu <sunyang.wu at jaguarmicro.com>
 Surabhi Boob <surabhi.boob at intel.com>
 Sushmita Hoskeri <sushmita.hoskeri at intel.com>
 Suyang Ju <sju at paloaltonetworks.com>
+Su Sai <spiderdetective.ss at gmail.com> <susai.ss at bytedance.com>
 Sylvain Rodon <srn at nexatech.fr>
 Sylvia Grundwürmer <sylvia.grundwuermer at b-plus.com>
 Sylwester Dziedziuch <sylwesterx.dziedziuch at intel.com>
diff --git a/app/test/test_lpm6_perf.c b/app/test/test_lpm6_perf.c
index 1860a99ed6..7b295a5752 100644
--- a/app/test/test_lpm6_perf.c
+++ b/app/test/test_lpm6_perf.c
@@ -148,7 +148,7 @@ test_lpm6_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);
-- 
2.39.2 (Apple Git-143)



More information about the dev mailing list