Skip to contentSkip to conversation

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

PATCH Applied Su Sai 2 participants 2 messages Aug 19 – Nov 12

lore
Share & tools
lore

Su Sai

author
#0 lore raw

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

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

---
 .mailmap                  | 1 +
 app/test/test_lpm6_perf.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
.mailmap +1 -0
index fcb3d1bb3f..1bd625811b 100644
@@ -1644,6 +1644,7 @@ Sunyang Wu <[email protected]>
 Surabhi Boob <[email protected]>
 Sushmita Hoskeri <[email protected]>
 Suyang Ju <[email protected]>
+Su Sai <[email protected]> <[email protected]>
 Sylvain Rodon <[email protected]>
 Sylvia Grundwürmer <[email protected]>
 Sylwester Dziedziuch <[email protected]>
app/test/test_lpm6_perf.c +1 -1
index 1860a99ed6..7b295a5752 100644
@@ -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);
Signature · 1 line
2.39.2 (Apple Git-143)