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 499025A75 for ; Mon, 26 Jan 2015 06:09:06 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 25 Jan 2015 21:09:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,466,1418112000"; d="scan'208";a="656370827" Received: from pgsmsx106.gar.corp.intel.com ([10.221.44.98]) by fmsmga001.fm.intel.com with ESMTP; 25 Jan 2015 21:09:03 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.110.15) by PGSMSX106.gar.corp.intel.com (10.221.44.98) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 26 Jan 2015 13:03:48 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.64]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.231]) with mapi id 14.03.0195.001; Mon, 26 Jan 2015 13:03:47 +0800 From: "Qiu, Michael" To: "Liu, Yong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework: DUT and Tester coexisted in the same platform Thread-Index: AQHQOSQKyZhVoS5epk+GVLAe1y9/6g== Date: Mon, 26 Jan 2015 05:03:47 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E60286CBA36F@SHSMSX101.ccr.corp.intel.com> References: <1422247975-30646-1-git-send-email-yong.liu@intel.com> Accept-Language: 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:09:07 -0000 On 1/26/2015 12:53 PM, Yong Liu wrote:=0A= > This patch based on "[PATCH 0/4] Support additional port configuration fi= le".=0A= > And do not support to run softwore performance test in the same platform.= =0A= >=0A= > Fix one bug in pci numa parse.=0A= >=0A= > Signed-off-by: Marvinliu =0A= > ---=0A= > framework/config.py | 5 ++++-=0A= > framework/tester.py | 5 ++++-=0A= > 2 files changed, 8 insertions(+), 2 deletions(-)=0A= >=0A= > diff --git a/framework/config.py b/framework/config.py=0A= > index 140c84b..948609a 100755=0A= > --- a/framework/config.py=0A= > +++ b/framework/config.py=0A= > @@ -79,7 +79,10 @@ class UserConf():=0A= > =0A= > for param in port.split(','):=0A= > (key, _, value) =3D param.partition('=3D')=0A= > - portDict[key] =3D value=0A= > + if key =3D=3D 'numa':=0A= > + portDict[key] =3D int(value)=0A= > + else:=0A= > + portDict[key] =3D value=0A= > return portDict=0A= > =0A= > =0A= > diff --git a/framework/tester.py b/framework/tester.py=0A= > index 345ab41..b35a359 100644=0A= > --- a/framework/tester.py=0A= > +++ b/framework/tester.py=0A= > @@ -287,6 +287,10 @@ class Tester(Crb):=0A= > if hits[localPort]:=0A= > continue=0A= > =0A= > + # skip ping self port=0A= > + if (self.crb['IP'] =3D=3D self.crb['tester IP']) and (se= lf.dut.ports_info[dutPort]['pci'] =3D=3D self.ports_info[localPort]['pci'])= :=0A= =0A= Would you please make separate this line? To be sure the len is not=0A= exceed 80.=0A= =0A= Thanks,=0A= Michael=0A= > + continue=0A= > + =0A= > ipv6 =3D self.dut.get_ipv6_address(dutPort)=0A= > if ipv6 =3D=3D "Not connected":=0A= > continue=0A= > @@ -440,7 +444,6 @@ class Tester(Crb):=0A= > """=0A= > if not self.has_external_traffic_generator():=0A= > self.alt_session.send_expect('killall scapy 2>/dev/null; ech= o tester', '# ', 5)=0A= > - super(Tester, self).kill_all()=0A= > =0A= > def close(self):=0A= > """=0A= =0A=