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 B2086AD95 for ; Wed, 4 Feb 2015 04:18:36 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 03 Feb 2015 19:13:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,516,1418112000"; d="scan'208";a="672393621" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by fmsmga002.fm.intel.com with ESMTP; 03 Feb 2015 19:18:29 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 4 Feb 2015 11:18:22 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.253]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.129]) with mapi id 14.03.0195.001; Wed, 4 Feb 2015 11:18:22 +0800 From: "Qiu, Michael" To: "Liu, Yong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework: enable DUT and Tester run in the same platform Thread-Index: AQHQOdf8rZeQOgL9YkW3MSlc1scqOg== Date: Wed, 4 Feb 2015 03:18:20 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E60286CD42BF@SHSMSX101.ccr.corp.intel.com> References: <1422247975-30646-1-git-send-email-yong.liu@intel.com> <1422325266-11099-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: enable DUT and Tester run 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: Wed, 04 Feb 2015 03:18:37 -0000 Hi, Marvin=0A= =0A= Please send out with the pattern [PATCH v2] next time for new version patch= .=0A= =0A= Acked-by: Michael Qiu =0A= On 1/27/2015 10:21 AM, Yong Liu wrote:=0A= > Skip to ping self port when DUT and Tester in the same platform.=0A= > Not support software performance in the same platform now.=0A= >=0A= > Signed-off-by: Yong Liu =0A= > ---=0A= > This patch based on "[PATCH 0/4] Support additional port configuration fi= le".=0A= >=0A= > framework/tester.py | 8 ++++++++=0A= > 1 file changed, 8 insertions(+)=0A= >=0A= > diff --git a/framework/tester.py b/framework/tester.py=0A= > index 345ab41..9100967 100644=0A= > --- a/framework/tester.py=0A= > +++ b/framework/tester.py=0A= > @@ -73,6 +73,8 @@ class Tester(Crb):=0A= > self.scapyCmds =3D []=0A= > self.bgCmds =3D []=0A= > self.bgItf =3D ''=0A= > + self.packet_gen =3D None=0A= > + self.ixia_packet_gen =3D None=0A= > =0A= > def init_ext_gen(self):=0A= > """=0A= > @@ -287,6 +289,11 @@ 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 \= =0A= > + (self.dut.ports_info[dutPort]['pci'] =3D=3D self.por= ts_info[localPort]['pci']):=0A= > + continue=0A= > +=0A= > ipv6 =3D self.dut.get_ipv6_address(dutPort)=0A= > if ipv6 =3D=3D "Not connected":=0A= > continue=0A= > @@ -440,6 +447,7 @@ 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= > + if self.packet_gen:=0A= > super(Tester, self).kill_all()=0A= > =0A= > def close(self):=0A= =0A=