From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9D1B45B09 for ; Tue, 27 Jan 2015 04:09:36 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 26 Jan 2015 19:03:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,471,1418112000"; d="scan'208";a="518026442" Received: from pgsmsx102.gar.corp.intel.com ([10.221.44.80]) by orsmga003.jf.intel.com with ESMTP; 26 Jan 2015 19:02:28 -0800 Received: from kmsmsx154.gar.corp.intel.com (172.21.73.14) by PGSMSX102.gar.corp.intel.com (10.221.44.80) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 27 Jan 2015 11:06:33 +0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by KMSMSX154.gar.corp.intel.com (172.21.73.14) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 27 Jan 2015 11:06:28 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.192]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.129]) with mapi id 14.03.0195.001; Tue, 27 Jan 2015 11:06:07 +0800 From: "Liu, Yong" To: "Zhang, XiaonanX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework support get oversize for performance Thread-Index: AQHQOUkxl5SkEte280mjan7kGAq3/JzTL8jggAATl7CAAAZM8A== Date: Tue, 27 Jan 2015 03:06:06 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10D541F4@SHSMSX103.ccr.corp.intel.com> References: <1422263952-32225-1-git-send-email-xiaonanx.zhang@intel.com> <86228AFD5BCD8E4EBFD2B90117B5E81E10D53FB6@SHSMSX103.ccr.corp.intel.com> <63FB47D6C0357E428AA804B2C89068BA012905ED@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <63FB47D6C0357E428AA804B2C89068BA012905ED@SHSMSX104.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 support get oversize for performance 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: Tue, 27 Jan 2015 03:09:37 -0000 Applied and thanks for your explain.=20 > -----Original Message----- > From: Zhang, XiaonanX > Sent: Tuesday, January 27, 2015 10:45 AM > To: Liu, Yong; dts@dpdk.org > Subject: RE: [dts] [PATCH] framework support get oversize for performance >=20 > Hi Yong, > I modified it for l3fwd performance about jumbo frame case as follows, > if frame_size > 1518, > l3fwd cmdline should add --enable-jumbo --max-pkt-len frame_size. > If we use ixia while rate return 0, We should focus on oversize at the > same time. >=20 >=20 > Best Regards > Thanks >=20 > -----Original Message----- > From: Liu, Yong > Sent: Tuesday, January 27, 2015 9:35 AM > To: Zhang, XiaonanX; dts@dpdk.org > Subject: RE: [dts] [PATCH] framework support get oversize for performance >=20 > Hi xiaonan, > Can you give use more detail information? Like that in which suite we > should use oversize in replace of bitrate? >=20 > > -----Original Message----- > > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiaonan Zhang > > Sent: Monday, January 26, 2015 5:19 PM > > To: dts@dpdk.org > > Subject: [dts] [PATCH] framework support get oversize for performance > > > > From: "xiaonanx.zhang" > > > > modify get_transmission_results function in framework etgen.py > > use ixia api stat cget -oversize to get Oversize and CRC Errors > > > > add return get oversize condition > > > > Signed-off-by: xiaonanx.zhang > > --- > > framework/etgen.py | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/framework/etgen.py b/framework/etgen.py > > index 2f2e975..f2da4ab 100644 > > --- a/framework/etgen.py > > +++ b/framework/etgen.py > > @@ -581,13 +581,18 @@ class IxiaPacketGenerator(SSHConnection): > > out =3D self.send_expect("stat cget -bitsReceived", '% ', = 10) > > self.logger.debug("port %d bits rate:" % (port) + out) > > bpsRate +=3D int(out.strip()) > > + out =3D self.send_expect("stat cget -oversize", '%', 10) > > + oversize +=3D int(out.strip()) > > > > self.logger.info("Rate: %f Mpps" % (rate * 1.0 / 1000000)) > > self.logger.info("Mbps rate: %f Mbps" % (bpsRate * 1.0 / > 1000000)) > > > > self.send_expect("ixStopTransmit portList", "%", 30) > > > > - return (bpsRate, rate) > > + if rate =3D=3D 0 and oversize > 0: > > + return (bpsRate, oversize) > > + else: > > + return (bpsRate, rate) > > > > def config_ixia_dcb_init(self, rxPort, txPort): > > """ > > -- > > 1.9.3