From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0088.outbound.protection.outlook.com [104.47.40.88]) by dpdk.org (Postfix) with ESMTP id 6897D38EB for ; Mon, 10 Apr 2017 19:10:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XBqTXj50boSEcOPqmt4r3vTPTuiUUsOcKUKbpOIYGMU=; b=c0fWK0nUDvTpevdcPLJ6rSXXRqFBV0dGkfNmYJPjlxrXVZHno4sLBoAIDXfF30dXdaydnkgep+WqPbsOpEorPwsCFDKUuP0c9yqmvrOkWBsfRgPniIEGnXcCgNwu0Sma9K/n6Pft43q1gLphPvuWAUxL/FZ5q+OqyTSFWwne+Uw= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from angela-H81M-S1.semihalf.local (31.172.191.173) by DM2PR0701MB812.namprd07.prod.outlook.com (10.242.127.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Mon, 10 Apr 2017 17:10:02 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Mon, 10 Apr 2017 19:09:20 +0200 Message-Id: <1491844162-16300-27-git-send-email-aczubak@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491844162-16300-1-git-send-email-aczubak@caviumnetworks.com> References: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> <1491844162-16300-1-git-send-email-aczubak@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: DB6PR05CA0010.eurprd05.prod.outlook.com (10.170.218.23) To DM2PR0701MB812.namprd07.prod.outlook.com (10.242.127.26) X-MS-Office365-Filtering-Correlation-Id: 59c96d26-8e9e-492e-7480-08d480346dca X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM2PR0701MB812; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 3:r5u6BwFiMie8ANxEeb650+MAHMtAfcia/kGR6qWzIRdqxPewoOt6KQI5dQ/Jet/lrLc3RGYp+oFVZOLr5t7p99sms3bXghA1azGn6slc8tsJ6JvPKZzkUbFWiz05QPnZLqXweTgxFgB1eOmy+w+mTir5pLU6a4JF/qsXakeZYw7EG5644+Osos/oI1tcNl0bYY/BVR+h4UW2iGPTLSqWpww+5kjqKF3J3m5Koi9geuq+QJ1HXCgtN1X+RHrO3QxwfdPCRCNH64D6KdxA1n1Xb1jTGcBHLeKIdGcDXAuCgt5ko/u6SXdcD5CFERFK17VDNpXTba+kUzldT9mWdVpQuQ==; 25:u/CbEMqWruft3w00cHTD66oV9d2i6M2lCHKV8b2jPnEYoeFfv5FGC6jV/btsLk581kFLuEkFTRT4uMnFEz68A8pSdpBYYlgvYJ3Od4wQLkCTDasLT9zs+p3MvuzvD3BAPbCdJZWeYW9B45sWyTCGvXAfFGm0Sq7KFzHpicxMKfWLiFXdDCBfOx8Fdyk57PQcC0uDZweUx1MwykYgkB5nJaa92I6cl5i99cVO8H18/92ug6iNmBK37vTcw6QL1JP8TfswwO5H9qlkzlbCOik9lvu3+2hUv2DaAjKNbwSnDCej37L3/3nfhs9BQya2+osZprVvIBMe4rzX8aGO0Xnd3haeK4FJuG0DSlflIP4/JSYBPOXjnK6CLH4SFt002XQXgLwd0hFI+z9oWF/QyE4ZsiOEgxbo5A6jANpIdVhUyaX2h37unS6n7ycprO8dZyOTDhrVMgw9WOeZLS3bSmrlTg== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 31:iyOYMBN6cmccwyS661hUKQGSx/m+A8DxjhI6gO/ATfbnxpcFM7ve5aUH+3W9arBmU4DZBOJVxKLpSb5lWsUhkWws1JX2X6Jq+NW37kfT02NO8T9IAu4JYZ4AASu58Dsnp2OqzoZNGOMHClwQMHJ+Hu0z4ounvUnt6aKZwhhwayK4A8qSFMr5pQaow3sW/LSv11cJYpdH/TaxYq9TmNZ1EmUkB8FAzXK+kWn9a6o+FZcTJE84tFsWq94vBCaYHm3t; 20:D10/+Qk5NG75wkrOr1NoVYwEmBAvLymmgc+ee7NlEZqKshBSDbnpmTs/bJehgdTpGTK2GVYIhytiCZIwYKfzlWQhWCLdVpeyrlulIbRxUodRS2WPJamvGiUelH8dIFDsqiFitaj9bPv15A7nrjsEkxeBl2nzC4+1gDL0BDJjG62U2KPNoCd8IvNn0ELm63yRsWULMc/700ZfGqJjG03IUwNOGHLiIEgdZmMagblPVnheeaa+ICvcfALsD4az5v+I37+OGE2iZCW8wFwoit76/orPHqPxdJxzmxrMgKJ1bya7y+g9593MsGyvA7LPoM315FolmnaxGRI5vr9K2QVwffSe3ynNc5gz99AFAv+P3QaIvtTO3vTQBLHF+YhKxxmdzBxJdJUzsbFNmol3FTdIgO/J5tLtwGn8Le/AGUT0v+dNr2/dJxMKBKxkXISi8ICN3HCFvAahePNfG7s9QZKOmLcO5WaDaE+QxWcjZ0jhKr8IOStBQkpHNEJ7APnsE3occ+D7acn14HQHsNJfQJG2DB27sn9JLJ1qPEGT9qI5+nIDhcnWlOGq1YDwB8A41xjUUYtLMATTYH7MZNImvTFHjOKKiBgObdD5HbeW3uSMFTg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:DM2PR0701MB812; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB812; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 4:HnL9M7XuK8rgwD0USdQsuZwVbhdvwRXsM2DJw96p96jGAt8SpP/M+7+Q4BRnPgOz7ZQdEYMJoid0n5FfeH7F36I9OOD20YVBYCe8cJoNOLFq0JQDtrf7hYZski1NeMJlb3aWmt2riYnOXOz4BDThAfv8B0XpG2KWmzhkEpCI55iFU9BDWZ2tjs7+AgBlygzq1yAZ3O5HXYxdG+ITf6+WdaezJDati40YeVWEH5Y1SOdqDfqNndYuV+wYdEkp+8bvitPJtCnh2aLLSd+Pv4Yq+ugniROP5pui1ISPfjnqjyF/RF/TL+RuoYVj7TXlSft3zNsMEfCWe+BurghfOPiqCyAGrWyIoBhOy5tFFpooVsEPcbhKFuIjHLSpy77rF6uy8vdjb0DqyrYlIWGpUezgpYzbU44XkJh860zumZdzDekysX5TeTHJbaiN5WcUON2rSxPHDNtHPX7cspMO9DP1eIzSmWiZgZmhqCFJ+i3bu+ZfHpfXv8R7IcLJk1R7bAzwYShfwfERP1WByeKEb3ph0+mYWe7aJub2kKGi8d8fPrtB0dbBPQSzaa5OmnnfBs2Qp5Y+D46yxGFd2r2wZngjiMJQr6wcgnfMHWxv/JNTpVKOtteLUsca1UXiQH5MdchqeMg8pPyKCFSKRAbKwynlxpguCidGokHwGw+3nGTiolznEM5jgLACYNdwWE0zab0H X-Forefront-PRVS: 027367F73D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39840400002)(39410400002)(39450400003)(39400400002)(8676002)(81166006)(2950100002)(305945005)(6512007)(7736002)(42882006)(6916009)(50226002)(48376002)(47776003)(6506006)(2906002)(53936002)(66066001)(6666003)(189998001)(6116002)(110136004)(33646002)(36756003)(38730400002)(107886003)(2361001)(5003940100001)(4326008)(3846002)(2351001)(5660300001)(6486002)(50466002)(50986999)(76176999)(42186005)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB812; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:sfv;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vAZ69iZVy09fis= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB812; 7:DqS4vQDqOGxsd34S6/QkCLkGGlRSvzaNnfn60fwsAjAL+AEvt7aVdTKoC0bg2vwz1qMLugczbWSx1a13ug6KidAq2Ng3tpUVSTlXawu01i8DHDZDNOM6dhpgUCEC43LdrirV9d7Cs/oEg1bNqRjxNnaEktPzPtBhknQJ9z+tnDboTTdN+U/oFOOtBSRobAcfBhSu3eUyqyd5WQtq6pSPVKbVbqTcHka4hIG+08FeJWZcu18JPzd1nwp9fpi2tkhxnbMbnY07IinkiJvzeVf93h/I59m2+m343cu1FwcpMaBKWQvyYFLhLzO3j1/qdGUgqVhNUQxjEY/AOiTp1R/JMA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2017 17:10:02.8628 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB812 Subject: [dts] [PATCH v2 26/28] tests: unit_tests_lpm - asking for lesser amount of hugepages if they are 524288kB 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: Mon, 10 Apr 2017 17:10:07 -0000 Test case test_lpm_ipv6 first checks what is the hugepages size on the DUT and then requests only 16 if the size is 524288 Signed-off-by: Angela Czubak --- tests/TestSuite_unit_tests_lpm.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py index e8149ff..68fa3bd 100644 --- a/tests/TestSuite_unit_tests_lpm.py +++ b/tests/TestSuite_unit_tests_lpm.py @@ -85,9 +85,14 @@ class TestUnitTestsLpmIpv6(TestCase): pass else: hugepage_ori = self.dut.get_total_huge_pages() - self.dut.set_huge_pages(4096) + hugepages_size = self.dut.send_expect("awk '/Hugepagesize/ {print $2}' /proc/meminfo", "# ") + if "524288" == hugepages_size: + nr_hugepages = 16 + else: + nr_hugepags = 4096 + self.dut.set_huge_pages(nr_hugepages) hugepage_num = self.dut.get_total_huge_pages() - self.verify(hugepage_num >= 4096, "failed to request huge memory") + self.verify(hugepage_num >= nr_hugepages, "failed to request huge memory") self.dut.send_expect("./%s/app/test -n 1 -c f" % self.target, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm6_autotest", "RTE>>", 3600) -- 2.7.4