From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 043F65A7A for ; Mon, 26 Jan 2015 06:12:05 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 25 Jan 2015 21:12:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,466,1418112000"; d="scan'208";a="667443860" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by fmsmga002.fm.intel.com with ESMTP; 25 Jan 2015 21:12:02 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 26 Jan 2015 13:12:02 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.192]) by shsmsx102.ccr.corp.intel.com ([169.254.2.238]) with mapi id 14.03.0195.001; Mon, 26 Jan 2015 13:12:01 +0800 From: "Liu, Yong" To: "Qiu, Michael" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework: DUT and Tester coexisted in the same platform Thread-Index: AQHQOSZPIH49kLGnS0+yBgo0jgO8JJzR2maQ Date: Mon, 26 Jan 2015 05:12:00 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10D538F6@SHSMSX103.ccr.corp.intel.com> References: <1422247975-30646-1-git-send-email-yong.liu@intel.com> <533710CFB86FA344BFBF2D6802E60286CBA37F@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <533710CFB86FA344BFBF2D6802E60286CBA37F@SHSMSX101.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] framework: DUT and Tester coexisted in the same platform 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, 26 Jan 2015 05:12:06 -0000 Thanks Michael. I'll apart this patch into two patches. > -----Original Message----- > From: Qiu, Michael > Sent: Monday, January 26, 2015 1:10 PM > To: Liu, Yong; dts@dpdk.org > Subject: Re: [dts] [PATCH] framework: DUT and Tester coexisted in the sam= e > platform >=20 > On 1/26/2015 12:53 PM, Yong Liu wrote: > > This patch based on "[PATCH 0/4] Support additional port configuration > file". > > And do not support to run softwore performance test in the same platfor= m. > > > > Fix one bug in pci numa parse. > > > > Signed-off-by: Marvinliu > > --- > > framework/config.py | 5 ++++- > > framework/tester.py | 5 ++++- > > 2 files changed, 8 insertions(+), 2 deletions(-) > > > > diff --git a/framework/config.py b/framework/config.py > > index 140c84b..948609a 100755 > > --- a/framework/config.py > > +++ b/framework/config.py > > @@ -79,7 +79,10 @@ class UserConf(): > > > > for param in port.split(','): > > (key, _, value) =3D param.partition('=3D') > > - portDict[key] =3D value > > + if key =3D=3D 'numa': > > + portDict[key] =3D int(value) > > + else: > > + portDict[key] =3D value > > return portDict > > > > >=20 > Better to make another patch for this issue. >=20 > Thanks, > Michael > > diff --git a/framework/tester.py b/framework/tester.py > > index 345ab41..b35a359 100644 > > --- a/framework/tester.py > > +++ b/framework/tester.py > > @@ -287,6 +287,10 @@ class Tester(Crb): > > if hits[localPort]: > > continue > > > > + # skip ping self port > > + if (self.crb['IP'] =3D=3D self.crb['tester IP']) and > (self.dut.ports_info[dutPort]['pci'] =3D=3D self.ports_info[localPort]['p= ci']): > > + continue > > + > > ipv6 =3D self.dut.get_ipv6_address(dutPort) > > if ipv6 =3D=3D "Not connected": > > continue > > @@ -440,7 +444,6 @@ class Tester(Crb): > > """ > > if not self.has_external_traffic_generator(): > > self.alt_session.send_expect('killall scapy 2>/dev/null; > echo tester', '# ', 5) > > - super(Tester, self).kill_all() > > > > def close(self): > > """