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 CBC8B8E83 for ; Mon, 23 Nov 2015 09:29:24 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 23 Nov 2015 00:29:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,336,1444719600"; d="scan'208";a="692366613" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga003.jf.intel.com with ESMTP; 23 Nov 2015 00:29:22 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id tAN8TKqq010035; Mon, 23 Nov 2015 16:29:20 +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 tAN8THow003809; Mon, 23 Nov 2015 16:29:19 +0800 Received: (from jingguox@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id tAN8THrU003805; Mon, 23 Nov 2015 16:29:17 +0800 From: Jingguo Fu To: dts@dpdk.org Date: Mon, 23 Nov 2015 16:29:15 +0800 Message-Id: <1448267355-3774-1-git-send-email-jingguox.fu@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: Jingguo Fu Subject: [dts] [DTS][PATCH V2] fix dut port config bug: numa is int, does not have lower attr 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, 23 Nov 2015 08:29:25 -0000 Signed-off-by: Jingguo Fu --- framework/dut.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/framework/dut.py b/framework/dut.py index 70bd146..90a86f5 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -776,11 +776,17 @@ class Dut(Crb): else: port_cfg = {} - for key in ['intf', 'mac', 'numa', 'peer', 'source']: + for key in ['intf', 'mac', 'peer', 'source']: if key in port_cfg: if key in port and port_cfg[key].lower() != port[key].lower(): self.logger.warning("CONFIGURED %s NOT SAME AS SCANNED!!!" % (key.upper())) port[key] = port_cfg[key].lower() + if 'numa' in port_cfg: + if port_cfg['numa'] != port['numa']: + self.logger.warning("CONFIGURED NUMA NOT SAME AS SCANNED!!!") + port['numa'] = port_cfg['numa'] + + def map_available_ports(self): """ -- 1.9.3