From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 83F8958EC for ; Fri, 1 Sep 2017 03:47:10 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Aug 2017 18:47:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,456,1498546800"; d="scan'208";a="1213256678" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2017 18:47:09 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 31 Aug 2017 18:47:09 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 31 Aug 2017 18:47:09 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.219]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Fri, 1 Sep 2017 09:47:07 +0800 From: "Liu, Yong" To: "Lu, PeipeiX" , "dts@dpdk.org" CC: "Lu, PeipeiX" Thread-Topic: [dts] [PATCH V1] tests/unit_tests_lpm: fix lpm set hugepage failed Thread-Index: AQHTIj4VRFaUpQZNGkGvCFxU8VCNyKKfQ2jg Date: Fri, 1 Sep 2017 01:47:06 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62E97E9B@SHSMSX103.ccr.corp.intel.com> References: <1504172843-105900-1-git-send-email-peipeix.lu@intel.com> In-Reply-To: <1504172843-105900-1-git-send-email-peipeix.lu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/unit_tests_lpm: fix lpm set hugepage failed X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2017 01:47:10 -0000 Peipei, We can assume that every host have the same setting as yours.=20 There're two options here, one is like original version, just allocate enou= gh hugepage for this case. The second option is that check the number of hugepages, raise one error if= not enough.=20 Thanks, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lu,peipei > Sent: Thursday, August 31, 2017 5:47 PM > To: dts@dpdk.org > Cc: Lu, PeipeiX > Subject: [dts] [PATCH V1] tests/unit_tests_lpm: fix lpm set hugepage > failed >=20 > Now all servers hugepage size were set 1G by default,the source codes wer= e > not must. >=20 > Signed-off-by: lu,peipei > --- > tests/TestSuite_unit_tests_lpm.py | 12 ------------ > 1 file changed, 12 deletions(-) >=20 > diff --git a/tests/TestSuite_unit_tests_lpm.py > b/tests/TestSuite_unit_tests_lpm.py > index e8149ff..792be40 100644 > --- a/tests/TestSuite_unit_tests_lpm.py > +++ b/tests/TestSuite_unit_tests_lpm.py > @@ -81,21 +81,9 @@ class TestUnitTestsLpmIpv6(TestCase): > """ > [arch, machine, env, toolchain] =3D self.target.split('-') > self.verify(arch in ["x86_64", "arm64"], "lpm6 request huge > memory") > - if env =3D=3D 'bsdapp': > - pass > - else: > - hugepage_ori =3D self.dut.get_total_huge_pages() > - self.dut.set_huge_pages(4096) > - hugepage_num =3D self.dut.get_total_huge_pages() > - self.verify(hugepage_num >=3D 4096, "failed to request huge > memory") > - > self.dut.send_expect("./%s/app/test -n 1 -c f" % self.target, > "R.*T.*E.*>.*>", 60) > out =3D self.dut.send_expect("lpm6_autotest", "RTE>>", 3600) > self.dut.send_expect("quit", "# ") > - if env =3D=3D 'bsdapp': > - pass > - else: > - self.dut.set_huge_pages(hugepage_ori) > self.verify("Test OK" in out, "Test failed") >=20 > def tear_down(self): > -- > 1.9.3