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 B601E8E85 for ; Wed, 25 Nov 2015 03:21:49 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 24 Nov 2015 18:21:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,341,1444719600"; d="scan'208";a="1882049" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga004.fm.intel.com with ESMTP; 24 Nov 2015 18:21:47 -0800 Message-ID: <56551B62.2010908@intel.com> Date: Wed, 25 Nov 2015 10:22:26 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Jingguo Fu , dts@dpdk.org References: <1448267355-3774-1-git-send-email-jingguox.fu@intel.com> In-Reply-To: <1448267355-3774-1-git-send-email-jingguox.fu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Wed, 25 Nov 2015 02:21:50 -0000 Applied. Thanks. On 11/23/2015 04:29 PM, Jingguo Fu wrote: > 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): > """