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 C4189234 for ; Tue, 27 Jan 2015 02:32:26 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 26 Jan 2015 17:26:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,471,1418112000"; d="scan'208";a="667957358" Received: from pgsmsx106.gar.corp.intel.com ([10.221.44.98]) by fmsmga002.fm.intel.com with ESMTP; 26 Jan 2015 17:32:23 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by PGSMSX106.gar.corp.intel.com (10.221.44.98) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 27 Jan 2015 09:32:21 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.192]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.64]) with mapi id 14.03.0195.001; Tue, 27 Jan 2015 09:32:19 +0800 From: "Liu, Yong" To: "Zhang, XiaonanX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] Modify tests/TestSuit_l3fwd.py Thread-Index: AQHQOTPsquutvbjRCkGkfxS/kTRt0pzTL7wg Date: Tue, 27 Jan 2015 01:32:18 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10D53F90@SHSMSX103.ccr.corp.intel.com> References: <1422254817-16456-1-git-send-email-xiaonanx.zhang@intel.com> In-Reply-To: <1422254817-16456-1-git-send-email-xiaonanx.zhang@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] Modify tests/TestSuit_l3fwd.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: Tue, 27 Jan 2015 01:32:28 -0000 Applied, thanks. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiaonan Zhang > Sent: Monday, January 26, 2015 2:47 PM > To: dts@dpdk.org > Subject: [dts] [PATCH] Modify tests/TestSuit_l3fwd.py >=20 > From: "xiaonanx.zhang" >=20 > use ixia to config stream sourceIpAddrMode and ipProtocol > to make sure source addr random and ip ipProtocol is raw. >=20 > add ip function for get fortville better performance. >=20 > Signed-off-by: xiaonanx.zhang > --- > tests/TestSuite_l3fwd.py | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) >=20 > diff --git a/tests/TestSuite_l3fwd.py b/tests/TestSuite_l3fwd.py > index 0e7df85..64f0f32 100644 > --- a/tests/TestSuite_l3fwd.py > +++ b/tests/TestSuite_l3fwd.py > @@ -610,6 +610,21 @@ class TestL3fwd(TestCase): > self.plot_2_ports() > dts.results_table_print() >=20 > + def ip(self, port, frag, src, proto, tos, dst, chksum, len, options, > version, flags, ihl, ttl, id): > + self.add_tcl_cmd("protocol config -name ip") > + self.add_tcl_cmd('ip config -sourceIpAddr "%s"' % src) > + self.add_tcl_cmd("ip config -sourceIpAddrMode ipRandom") > + self.add_tcl_cmd('ip config -destIpAddr "%s"' % dst) > + self.add_tcl_cmd("ip config -destIpAddrMode ipIdle") > + self.add_tcl_cmd("ip config -ttl %d" % ttl) > + self.add_tcl_cmd("ip config -totalLength %d" % len) > + self.add_tcl_cmd("ip config -fragment %d" % frag) > + self.add_tcl_cmd("ip config -ipProtocol ipV4ProtocolReserved255"= ) > + self.add_tcl_cmd("ip config -identifier %d" % id) > + self.add_tcl_cmd("stream config -framesize %d" % (len + 18)) > + self.add_tcl_cmd("ip set %d %d %d" % (self.chasId, port['card'], > port['port'])) > + > + > def tear_down(self): > """ > Run after each test case. > -- > 1.9.3