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 743DEC5CA for ; Tue, 28 Jul 2015 04:01:00 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 27 Jul 2015 19:00:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,559,1432623600"; d="scan'208";a="756232100" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 27 Jul 2015 19:00:58 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6S20u4o006717; Tue, 28 Jul 2015 10:00:56 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t6S20sJj008631; Tue, 28 Jul 2015 10:00:56 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6S20sgs008627; Tue, 28 Jul 2015 10:00:54 +0800 From: Yong Liu To: dts@dpdk.org Date: Tue, 28 Jul 2015 10:00:53 +0800 Message-Id: <1438048853-8595-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] fix bug that check with wrong hugepage number 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: Tue, 28 Jul 2015 02:01:00 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/dut.py b/framework/dut.py index f93d696..b2d8c7f 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -272,7 +272,7 @@ class Dut(Crb): if total_huge_pages != arch_huge_pages: # for i686 and x86_x32 just use hugepage from socket 0 - if hugepages != 4096: + if arch_huge_pages != 4096: self.set_huge_pages(arch_huge_pages, numa=0) print dts.GREEN("Hugepage allocated from socket 0, please take care!!!") else: -- 1.9.3