From: Nikita Kozlov Date: Tue, 1 Nov 2016 11:55:55 +0000 (+0100) Subject: app/test: fix crash when checking LPM performance twice X-Git-Tag: spdx-start~5397 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b2212274c89e22911eb911496b386285fdbee90f;p=dpdk.git app/test: fix crash when checking LPM performance twice num_route_entries needs to be resetted. Fixes: 17d60f5b5eea ("app/test: remove large IPv4 LPM data file") Signed-off-by: Nikita Kozlov Tested-by: Bruce Richardson Tested-by: Wei Dai Acked-by: Wei Dai --- diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c index 608e17abcd..e7e1281bda 100644 --- a/app/test/test_lpm_perf.c +++ b/app/test/test_lpm_perf.c @@ -301,6 +301,7 @@ static void generate_large_route_rule_table(void) uint32_t ip_class; uint8_t depth; + num_route_entries = 0; memset(large_route_table, 0, sizeof(large_route_table)); for (ip_class = IP_CLASS_A; ip_class <= IP_CLASS_C; ip_class++) {