From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.elyzion.net (fob.gandi.net [217.70.181.1]) by dpdk.org (Postfix) with ESMTP id 5D6633277 for ; Tue, 1 Nov 2016 11:47:47 +0100 (CET) Received: from nikita (uid 1001) (envelope-from nikita@elyzion.net) id 1dbfa by mail.elyzion.net (DragonFly Mail Agent v0.11+); Tue, 01 Nov 2016 11:47:46 +0100 From: Nikita Kozlov To: dev@dpdk.org Date: Tue, 1 Nov 2016 11:47:42 +0100 Message-Id: <20161101104742.12307-1-nikita@elyzion.net> X-Mailer: git-send-email 2.9.2 Subject: [dpdk-dev] [PATCH] app/test: fix a segfault when lpm_perf_autotest is run more than 1 time X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2016 10:47:47 -0000 num_route_entries need to be reseted. --- app/test/test_lpm_perf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c index 608e17a..e7e1281 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++) { -- 2.9.2