From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 5BAD22A58 for ; Thu, 3 Nov 2016 04:28:42 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 02 Nov 2016 20:28:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,436,1473145200"; d="scan'208";a="1079863039" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by fmsmga002.fm.intel.com with ESMTP; 02 Nov 2016 20:28:40 -0700 Received: from pgsmsx106.gar.corp.intel.com ([169.254.9.114]) by KMSMSX151.gar.corp.intel.com ([169.254.10.34]) with mapi id 14.03.0248.002; Thu, 3 Nov 2016 11:28:39 +0800 From: "Dai, Wei" To: Nikita Kozlov , "dev@dpdk.org" , "Richardson, Bruce" , "Dai, Wei" Thread-Topic: [dpdk-dev] [PATCH v3] app/test: fix a segfault when lpm_perf_autotest is run more than 1 time Thread-Index: AQHSNDcJJvrCFyxymUmAQG0618OhxKDGm9kg Date: Thu, 3 Nov 2016 03:28:38 +0000 Message-ID: <49759EB36A64CF4892C1AFEC9231E8D63A2EB3E8@PGSMSX106.gar.corp.intel.com> References: <20161101112000.12670-1-nikita@elyzion.net> <20161101115555.12867-1-nikita@elyzion.net> In-Reply-To: <20161101115555.12867-1-nikita@elyzion.net> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDdhM2ZkMTYtNjA2Yi00ZDg1LTllMWEtZDBmZTdkMmRhYzUyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InBpU3lTYzZjTnJyYnFmXC90dldIQVVXK1JJWWFWWjFUR3JCa3lYbEhFb2hvPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] 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: Thu, 03 Nov 2016 03:28:43 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Nikita Kozlov > Sent: Tuesday, November 1, 2016 7:56 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3] app/test: fix a segfault when lpm_perf_aut= otest > is run more than 1 time >=20 > num_route_entries need to be reseted. >=20 > Fixes: 17d60f5b5eea ("app/test: remove large IPv4 LPM data file") >=20 > Signed-off-by: Nikita Kozlov Tested-by: Bruce Richardson Tested-by: Wei Dai Acked-by: Wei Dai > --- > app/test/test_lpm_perf.c | 1 + > 1 file changed, 1 insertion(+) >=20 > 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; >=20 > + num_route_entries =3D 0; > memset(large_route_table, 0, sizeof(large_route_table)); >=20 > for (ip_class =3D IP_CLASS_A; ip_class <=3D IP_CLASS_C; ip_class++) { > -- > 2.9.2