From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2F04A04F9; Fri, 10 Jan 2020 08:29:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C9A751E8AD; Fri, 10 Jan 2020 08:29:57 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0AAB81E553 for ; Fri, 10 Jan 2020 08:29:55 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 23:29:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,415,1571727600"; d="scan'208";a="216567550" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 09 Jan 2020 23:29:54 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 9 Jan 2020 23:29:54 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 9 Jan 2020 23:29:53 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.55]) with mapi id 14.03.0439.000; Fri, 10 Jan 2020 15:29:51 +0800 From: "Tu, Lijuan" To: "usurekha@marvell.com" , "dts@dpdk.org" CC: "pvukkisala@marvell.com" Thread-Topic: [dts] [PATCH] TestSuite_tso.py:Modified csum set commands and testpmd command for cavium_a063 and cavium_a064 Thread-Index: AQHVx3m4Ras7+myKnUOgGzTtdvl5qafjgIfw Date: Fri, 10 Jan 2020 07:29:51 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA54E8@SHSMSX101.ccr.corp.intel.com> References: <1578635113-6314-1-git-send-email-usurekha@marvell.com> In-Reply-To: <1578635113-6314-1-git-send-email-usurekha@marvell.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action 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] TestSuite_tso.py:Modified csum set commands and testpmd command for cavium_a063 and cavium_a064 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" applied > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of > usurekha@marvell.com > Sent: Friday, January 10, 2020 1:45 PM > To: dts@dpdk.org > Cc: pvukkisala@marvell.com; usurekha > Subject: [dts] [PATCH] TestSuite_tso.py:Modified csum set commands and > testpmd command for cavium_a063 and cavium_a064 >=20 > From: usurekha >=20 > Added required tx-offload field in testpmd command. > Modified csum set commands as SCTP and outer-ip packet checksum is > unsupported by cavium_a063. >=20 > Signed-off-by: usurekha > --- > tests/TestSuite_tso.py | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py index > c53f392..e1b912b 100644 > --- a/tests/TestSuite_tso.py > +++ b/tests/TestSuite_tso.py > @@ -208,22 +208,27 @@ class TestTSO(TestCase): > self.tester.send_expect("ethtool -K %s rx off tx off tso off gso= off gro off > lro off" % tx_interface, "# ") > self.tester.send_expect("ip l set %s up" % tx_interface, "# ") >=20 > - cmd =3D "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=3D512 --txd= =3D512 -- > burst=3D32 --rxfreet=3D64 --mbcache=3D128 --portmask=3D%s --max-pkt-len= =3D%s -- > txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst=3D32 " % (self.tar= get, > self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portM= ask, > TSO_MTU) > + if (self.nic in ["cavium_a063","cavium_a064"]): > + cmd =3D "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=3D512 -= -txd=3D512 -- > burst=3D32 --rxfreet=3D64 --mbcache=3D128 --portmask=3D%s --max-pkt-len= =3D%s -- > txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst=3D32 --tx-offloads= =3D0x8000" % > (self.target, self.coreMask, self.dut.get_memory_channels(), self.blackli= st, > self.portMask, TSO_MTU) > + else: > + cmd =3D "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=3D512 > + --txd=3D512 --burst=3D32 --rxfreet=3D64 --mbcache=3D128 --portmask=3D%s > + --max-pkt-len=3D%s --txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --t= xrst=3D32 " > + % (self.target, self.coreMask, self.dut.get_memory_channels(), > + self.blacklist, self.portMask, TSO_MTU) > self.dut.send_expect(cmd, "testpmd> ", 120) > self.dut.send_expect("set verbose 1", "testpmd> ", 120) > self.dut.send_expect("port stop all", "testpmd> ", 120) > self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "t= estpmd> > ", 120) > self.dut.send_expect("csum set udp hw %d" % self.dut_ports[0], > "testpmd> ", 120) > self.dut.send_expect("csum set tcp hw %d" % self.dut_ports[0], > "testpmd> ", 120) > - self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[0], > "testpmd> ", 120) > - self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[= 0], > "testpmd> ", 120) > + if (self.nic not in ["cavium_a063", "cavium_a064"]): > + self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[= 0], > "testpmd> ", 120) > + self.dut.send_expect("csum set outer-ip hw %d" % > + self.dut_ports[0], "testpmd> ", 120) > self.dut.send_expect("csum parse-tunnel on %d" % self.dut_ports[= 0], > "testpmd> ", 120) >=20 > self.dut.send_expect("csum set ip hw %d" % self.dut_ports[1], "t= estpmd> > ", 120) > self.dut.send_expect("csum set udp hw %d" % self.dut_ports[1], > "testpmd> ", 120) > self.dut.send_expect("csum set tcp hw %d" % self.dut_ports[1], > "testpmd> ", 120) > - self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[1], > "testpmd> ", 120) > - self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[= 1], > "testpmd> ", 120) > + if (self.nic not in ["cavium_a063", "cavium_a064"]): > + self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[= 1], > "testpmd> ", 120) > + self.dut.send_expect("csum set outer-ip hw %d" % > + self.dut_ports[1], "testpmd> ", 120) > self.dut.send_expect("csum parse-tunnel on %d" % self.dut_ports[= 1], > "testpmd> ", 120) >=20 > self.dut.send_expect("tso set 800 %d" % self.dut_ports[1], "test= pmd> ", > 120) > -- > 2.7.4