From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 527EF8D88 for ; Thu, 13 Aug 2015 07:13:55 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 12 Aug 2015 22:13:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,667,1432623600"; d="scan'208";a="747599340" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by orsmga001.jf.intel.com with ESMTP; 12 Aug 2015 22:13:52 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by PGSMSX101.gar.corp.intel.com (10.221.44.78) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 13 Aug 2015 13:13:51 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.248]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.210]) with mapi id 14.03.0224.002; Thu, 13 Aug 2015 13:13:44 +0800 From: "Liu, Yong" To: "Xu, Qian Q" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] Update performance test part for 40G case. Thread-Index: AQHQ1M7N6C23L/IekE2RY1P0OsSX/54JY++w Date: Thu, 13 Aug 2015 05:13:43 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10ED5D86@SHSMSX103.ccr.corp.intel.com> References: <1439363745-11764-1-git-send-email-qian.q.xu@intel.com> In-Reply-To: <1439363745-11764-1-git-send-email-qian.q.xu@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] Update performance test part for 40G case. 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: Thu, 13 Aug 2015 05:13:56 -0000 Applied in 1.1 branch. Thanks. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Qian Xu > Sent: Wednesday, August 12, 2015 3:16 PM > To: dts@dpdk.org > Subject: [dts] [PATCH] Update performance test part for 40G case. >=20 > Signed-off-by: Qian Xu >=20 > For FVL40G NICs, we need 2 queues per port and the --rss-ip options for > best performance, also the traffic needs to be changed, not fixed one. >=20 > diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py > index 7acf937..afb2450 100644 > --- a/tests/TestSuite_pmd.py > +++ b/tests/TestSuite_pmd.py > @@ -42,9 +42,9 @@ from plotting import Plotting > from time import sleep > from settings import HEADER_SIZE > from pmd_output import PmdOutput > +from etgen import IxiaPacketGenerator >=20 > - > -class TestPmd(TestCase): > +class TestPmd(TestCase,IxiaPacketGenerator): >=20 > def plot_results(self, number_ports): >=20 > @@ -76,15 +76,17 @@ class TestPmd(TestCase): >=20 > PMD prerequisites. > """ > + self.tester.extend_external_packet_generator(TestPmd, self) > + > self.frame_sizes =3D [64, 65, 128, 256, 512, 1024, 1280, 1518] >=20 > self.rxfreet_values =3D [0, 8, 16, 32, 64, 128] >=20 > self.test_cycles =3D [{'cores': '1S/1C/1T', 'Mpps': {}, 'pct': {= }}, > - {'cores': '1S/1C/2T', 'Mpps': {}, 'pct': {}}= , > {'cores': '1S/2C/1T', 'Mpps': {}, 'pct': {}}= , > {'cores': '1S/2C/2T', 'Mpps': {}, 'pct': {}}= , > - {'cores': '1S/4C/2T', 'Mpps': {}, 'pct': {}} > + {'cores': '1S/4C/1T', 'Mpps': {}, 'pct': {}}= , > + {'cores': '1S/8C/1T', 'Mpps': {}, 'pct': {}} > ] >=20 > self.table_header =3D ['Frame Size'] > @@ -151,7 +153,7 @@ class TestPmd(TestCase): > core_mask =3D dts.create_mask(core_list) > port_mask =3D dts.create_mask(self.dut.get_ports()) >=20 > - self.pmdout.start_testpmd("all", "--coremask=3D%s --rxq=3D%d= -- > txq=3D%d --portmask=3D%s" % (core_mask, queues, queues, port_mask)) > + self.pmdout.start_testpmd("all", "--coremask=3D%s --rxq=3D%d= -- > txq=3D%d --portmask=3D%s --rss-ip" % (core_mask, queues, queues, port_mas= k)) >=20 > info =3D "Executing PMD (mac fwd) using %s\n" % > test_cycle['cores'] > dts.report(info, annex=3DTrue) > @@ -167,9 +169,9 @@ class TestPmd(TestCase): >=20 > # create pcap file > self.logger.info("Running with frame size %d " % > frame_size) > - payload_size =3D frame_size - self.headers_size > + payload_size =3D frame_size - HEADER_SIZE['eth'] - > HEADER_SIZE['ip'] > self.tester.scapy_append( > - 'wrpcap("test.pcap", > [Ether(src=3D"52:00:00:00:00:00")/IP()/UDP()/("X"*%d)])' % payload_size) > + 'wrpcap("test.pcap", > [Ether(src=3D"52:00:00:00:00:00")/IP(src=3D"1.2.3.4",dst=3D"1.1.1.1")/("X= "*%d)]) > ' % payload_size) > self.tester.scapy_execute() >=20 > # run traffic generator > @@ -410,7 +412,22 @@ class TestPmd(TestCase): > "packet pass assert error, expected %d TX bytes, > actual %d" % (frame_size, p0tx_bytes)) >=20 > return out > - > + > + 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. > -- > 2.1.0