From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 72B77937C for ; Fri, 13 Nov 2015 06:58:54 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 12 Nov 2015 21:58:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,286,1444719600"; d="scan'208";a="599581498" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by FMSMGA003.fm.intel.com with ESMTP; 12 Nov 2015 21:58:37 -0800 Message-ID: <56457C63.6060600@intel.com> Date: Fri, 13 Nov 2015 14:00:03 +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: <1447391834-15200-1-git-send-email-jingguox.fu@intel.com> In-Reply-To: <1447391834-15200-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] fix dut port config bug: numa is int, does not have lower attr Changes to be committed: modified: framework/dut.py 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, 13 Nov 2015 05:58:54 -0000 Hi Jingguo, Please add warning when configuration not match real. And please separate comments from email subject. On 11/13/2015 01:17 PM, Jingguo Fu wrote: > Signed-off-by: Jingguo Fu > --- > framework/dut.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/framework/dut.py b/framework/dut.py > index 70bd146..37d6050 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -775,12 +775,13 @@ class Dut(Crb): > port_cfg['source'] = 'cfg' > 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: > + port['numa'] = port_cfg['numa'] > Better to check whether assigned numa matched detected numa. If they are mismatched, just send out the warning like "mac" and other parameters. > def map_available_ports(self): > """