From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id AFA0B199AC for ; Thu, 25 Jan 2018 08:10:29 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2018 23:10:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,409,1511856000"; d="scan'208";a="22174563" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga003.jf.intel.com with ESMTP; 24 Jan 2018 23:10:27 -0800 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Jan 2018 23:10:27 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Jan 2018 23:10:26 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Thu, 25 Jan 2018 15:10:20 +0800 From: "Tu, LijuanX A" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH v1 2/3] tests: reset "tx-offloads" to defualt Thread-Index: AQHTlatKSVONjooy00esrJEI8pbVcKOEK5NQ Date: Thu, 25 Jan 2018 07:10:20 +0000 Message-ID: <38D041F150D4184C8114E499040E62343DC94CD7@SHSMSX103.ccr.corp.intel.com> References: <1516895025-29743-1-git-send-email-lijuanx.a.tu@intel.com> In-Reply-To: <1516895025-29743-1-git-send-email-lijuanx.a.tu@intel.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.0.0.116 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODczOTlkMzctZGU0Mi00ZmNkLTkyYzUtNzk2OWMzYTI1NGQ5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJuc0xEejlaYlhcL2pDZDN4dTJwOXRkQzhjT2t5U3MwZzdTNWkyZ1BQNEowN1Y4WXFFaXEwWVZMUlhBNUtTZEY0cyJ9 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 v1 2/3] tests: reset "tx-offloads" to defualt 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, 25 Jan 2018 07:10:30 -0000 Sorry for duplicate email. -----Original Message----- From: Tu, LijuanX A=20 Sent: Thursday, January 25, 2018 11:44 PM To: dts@dpdk.org Cc: Tu, LijuanX A Subject: [dts][PATCH v1 2/3] tests: reset "tx-offloads" to defualt No specific tx offloads need to be set. remove the option ,use dpdk default value. Signed-off-by: Lijuan Tu --- tests/TestSuite_fortville_rss_granularity_config.py | 12 ++++++------ tests/TestSuite_ipgre.py | 4 ++-- tests/TestSuite_nvgre.py | 8 ++++---- tests/TestSuite_pmdrss_hash.py | 2 +- tests/TestSuite_qinq_filter.py | 16 ++++++++-------- tests/TestSuite_sriov_kvm.py | 2 +- tests/TestSuite_tso.py | 6 +++--- tests/TestSuite_uni_pkt.py | 2 +- tests/TestSuite_vf_offload.py | 4 ++-- tests/TestSuite_vxlan.py | 20 ++++++++++-------= --- 10 files changed, 38 insertions(+), 38 deletions(-) diff --git a/tests/TestSuite_fortville_rss_granularity_config.py b/tests/Te= stSuite_fortville_rss_granularity_config.py index c86a20f..58ae0ef 100644 --- a/tests/TestSuite_fortville_rss_granularity_config.py +++ b/tests/TestSuite_fortville_rss_granularity_config.py @@ -202,7 +202,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xfff= fe --portmask=3D0x3 --rxq=3D%d --txq=3D%d --tx-offloads=3D0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i=20 + --coremask=3D0xffffe --portmask=3D0x3 --rxq=3D%d --txq=3D%d" % (self.target, self.dut.get_memory_channels(), queue, queue= ), "testpmd> ", 120) =20 self.dut.send_expect("set verbose 8", "testpmd> ") @@ -278,7 += 278,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xfff= fe --portmask=3D0x3 --rxq=3D%d --txq=3D%d --tx-offloads=3D0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i=20 + --coremask=3D0xffffe --portmask=3D0x3 --rxq=3D%d --txq=3D%d" % (self.target, self.dut.get_memory_channels(), queue, queue= ), "testpmd> ", 120) =20 self.dut.send_expect("set verbose 8", "testpmd> ") @@ -355,7 += 355,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xfff= fe --portmask=3D0x3 --rxq=3D%d --txq=3D%d --tx-offloads=3D0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i=20 + --coremask=3D0xffffe --portmask=3D0x3 --rxq=3D%d --txq=3D%d" % (self.target, self.dut.get_memory_channels(), queue, queue= ), "testpmd> ", 120) =20 self.dut.send_expect("set verbose 8", "testpmd> ") @@ -432,7 += 432,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xfff= fe --portmask=3D0x3 --rxq=3D%d --txq=3D%d --tx-offloads=3D0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i=20 + --coremask=3D0xffffe --portmask=3D0x3 --rxq=3D%d --txq=3D%d" % (self.target, self.dut.get_memory_channels(), queue, queue= ), "testpmd> ", 120) =20 self.dut.send_expect("set verbose 8", "testpmd> ") @@ -509,7 += 509,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xfff= fe --portmask=3D0x3 --rxq=3D%d --txq=3D%d --tx-offloads=3D0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i=20 + --coremask=3D0xffffe --portmask=3D0x3 --rxq=3D%d --txq=3D%d" % (self.target, self.dut.get_memory_channels(), queue, queue= ), "testpmd> ", 120) =20 self.dut.send_expect("set verbose 8", "testpmd> ") @@ -570,7 += 570,7 @@ class TestFortvilleRssGranularityConfig(TestCase): # test with different rss queues for queue in testQueues: self.dut.send_expect( - "./%s/app/testpmd -c fffff -n %d -- -i --coremask=3D0xfff= fe --portmask=3D0x3 --rxq=3D%d --txq=3D%d --tx-offloads=3D0x8fff" % + "./%s/app/testpmd -c fffff -n %d -- -i=20 + --coremask=3D0xffffe --portmask=3D0x3 --rxq=3D%d --txq=3D%d" % (self.target, self.dut.get_memory_channels(), queue, queue= ), "testpmd> ", 120) =20 self.dut.send_expect("set verbose 8", "testpmd> ") diff --git = a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index c1d052e..91f946= 9 100644 --- a/tests/TestSuite_ipgre.py +++ b/tests/TestSuite_ipgre.py @@ -263,7 +263,7 @@ class TestIpgre(TestCase): inner_mac =3D "10:00:00:00:00:00" =20 # Start testpmd with multi queues - #testpmd_cmd =3D "./%s/app/testpmd -c ff -n 3 -- -i --rxq=3D4 --t= xq=3D4 --tx-offloads=3D0x8fff" % self.target + #testpmd_cmd =3D "./%s/app/testpmd -c ff -n 3 -- -i --rxq=3D4=20 + --txq=3D4" % self.target testpmd_cmd =3D "./%s/app/testpmd -c ff -n 3 -- -i --enable-rx-cks= um --rxq=3D4 --txq=3D4" % self.target self.dut.send_expect(testpmd_cmd, "testpmd>", 20) self.dut.send_expect("set fwd rxonly", "testpmd>") @@ -307,7 +307,= 7 @@ class TestIpgre(TestCase): Send packet with wrong IP/TCP/UDP/SCTP checksum and check forwarde= d packet checksum=20 """ # Start testpmd and enable rxonly forwarding mode - testpmd_cmd =3D "./%s/app/testpmd -c ff -n 3 -- -i --enable-rx-cks= um --tx-offloads=3D0x8fff --port-topology=3Dloop" % self.target + testpmd_cmd =3D "./%s/app/testpmd -c ff -n 3 -- -i=20 + --enable-rx-cksum --port-topology=3Dloop" % self.target self.dut.send_expect(testpmd_cmd, "testpmd>", 20) self.dut.send_expect("set verbose 1", "testpmd>") self.dut.send_expect("set fwd csum", "testpmd>") diff --git a/test= s/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index 4cb3e8f..d64c3cb 1006= 44 --- a/tests/TestSuite_nvgre.py +++ b/tests/TestSuite_nvgre.py @@ -438,7 +438,7 @@ class TestNvgre(TestCase): """ send nvgre packet and check whether testpmd detect the correct pac= ket type """ - out =3D self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i -= -disable-rss --rxq=3D4 --txq=3D4 --nb-cores=3D4 --portmask=3D%s --tx-offloa= ds=3D0x8fff" + out =3D self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i -= -disable-rss --rxq=3D4 --txq=3D4 --nb-cores=3D4 --portmask=3D%s" % (self.target, self.coremask, self.dut= .get_memory_channels(), self.portmask), "testpmd>", 30) out =3D self.dut.send_expect("set fwd rxonly", "testpmd>", 10) self.dut.send_expect("set verbose 1", "testpmd>", 10) @@ -467,7 +4= 67,7 @@ class TestNvgre(TestCase): """ send nvgre packet and check whether receive packet in assigned que= ue """ - self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable= -rss --rxq=3D4 --txq=3D4 --nb-cores=3D4 --portmask=3D%s --tx-offloads=3D0x8= fff" + self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable= -rss --rxq=3D4 --txq=3D4 --nb-cores=3D4 --portmask=3D%s" % (self.target, self.coremask, self.dut.get_m= emory_channels(), self.portmask), "testpmd>", 30) self.dut.send_expect("set fwd rxonly", "testpmd>", 10) self.dut.send_expect("set verbose 1", "testpmd>", 10) @@ -543,7 +5= 43,7 @@ class TestNvgre(TestCase): self.logger.info("chksums_ref:" + str(chksums_default)) =20 # start testpmd with 2queue/1port - out =3D self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i -= -disable-rss --rxq=3D4 --txq=3D4 --nb-cores=3D4 --portmask=3D%s --enable-rx= -cksum --tx-offloads=3D0x8fff" + out =3D self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i -= -disable-rss --rxq=3D4 --txq=3D4 --nb-cores=3D4 --portmask=3D%s --enable-rx= -cksum" % (self.target, self.coremask, self.dut= .get_memory_channels(), self.portmask), "testpmd>", 30) # disable vlan filter self.dut.send_expect('vlan set filter off %d' % self.dut_rx_port, = "testpmd") @@ -664,7 +664,7 @@ class TestNvgre(TestCase): self.nvgre_filter(filter_type=3D"imac", remove=3DTrue) config =3D NvgreTestConfig(self) # config.outer_mac_dst =3D self.dut_port_mac - self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable= -rss --rxq=3D4 --txq=3D4 --nb-cores=3D4 --portmask=3D%s --tx-offloads=3D0x8= fff" + self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i --disable= -rss --rxq=3D4 --txq=3D4 --nb-cores=3D4 --portmask=3D%s" % (self.target, self.coremask, self.dut.get_m= emory_channels(), self.portmask), "testpmd>", 30) out =3D self.dut.send_expect("tunnel_filter add %d %s %s %s %d nvg= re %s %d %d" % (self.dut_rx_port, config.outer_mac_d= st, self.invalid_mac, config.inner_ip_dst, vlan_id, diff --git a/tests/Test= Suite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash.py index 227caaf..78e407= 5 100644 --- a/tests/TestSuite_pmdrss_hash.py +++ b/tests/TestSuite_pmdrss_hash.py @@ -655,7 +655,7 @@ class TestPmdrssHash(TestCase): def test_dynamic_rss_bond_config(self): =20 # setup testpmd and finish bond config - self.dut.send_expect("./%s/app/testpmd -c f -n 4 -- -i --tx-offloa= ds=3D0x8fff" % self.target, "testpmd> ", 120) + self.dut.send_expect("./%s/app/testpmd -c f -n 4 -- -i" %=20 + self.target, "testpmd> ", 120) out =3D self.dut.send_expect("create bonded device 3 0", "testpmd>= ", 30) bond_device_id =3D int(re.search("port \d+", out).group().split(" = ")[-1].strip()) =20 diff --git a/tests/TestSuite_qinq_filter.py b/tests/TestSuite_qinq_filter.p= y index ad3e7ea..3f9c1ac 100644 --- a/tests/TestSuite_qinq_filter.py +++ b/tests/TestSuite_qinq_filter.py @@ -147,7 +147,7 @@ class TestQinqFilter(TestCase): =20 self.dut.send_expect(r'./%s/app/testpmd -c %s -n 4 -- -i \ --portmask=3D%s --port-topology=3Dloop \ - --rxq=3D4 --txq=3D4 --tx-offloads=3D0x8fff = --disable-rss' % (self.target, self.coreMask, self.portMask), + --rxq=3D4 --txq=3D4 --disable-rss' %=20 + (self.target, self.coreMask, self.portMask), "testpmd> ") self.dut.send_expect("vlan set qinq on %s" % dutRxPortId, "testpmd= > ") self.dut.send_expect("set fwd rxonly", "testpmd> ") @@ -167,7 +167= ,7 @@ class TestQinqFilter(TestCase): """ self.dut.send_expect(r'./%s/app/testpmd -c %s -n 4 -- -i \ --portmask=3D%s --port-topology=3Dloop \ - --rxq=3D4 --txq=3D4 --tx-offloads=3D0x8fff = --disable-rss' % (self.target, self.coreMask, self.portMask), + --rxq=3D4 --txq=3D4 --disable-rss' %=20 + (self.target, self.coreMask, self.portMask), "testpmd> ") self.dut.send_expect("vlan set qinq on %s" % dutRxPortId, "testpmd= > ") self.dut.send_expect("set fwd rxonly", "testpmd> ") @@ -203,7 +203= ,7 @@ class TestQinqFilter(TestCase): =20 self.dut.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=3D1024,1024 --file-prefix=3Dpf= -w %s -- -i --port-topology=3Dloop \ - --rxq=3D4 --txq=3D4 --tx-offloads=3D0x8fff = --disable-rss'=20 + --rxq=3D4 --txq=3D4 --disable-rss'=20 % (self.target, self.coreMask, self.dut.por= ts_info[dutRxPortId]['pci']), "testpmd> ") self.dut.send_expect("vlan set qinq on %s" % dutRxPortId, "testpmd= > ") @@ -220,13 +220,13 @@ class TestQinqFilter(TestCase): =20 vf0_session.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=3D1024,1024 --file-prefix=3Dvf= 0 -w %s -- -i --port-topology=3Dloop \ - --rxq=3D4 --txq=3D4 --tx-offloads=3D0x8fff = --disable-rss'=20 + --rxq=3D4 --txq=3D4 --disable-rss'=20 % (self.target, self.coreMask, vf_list[0]), "testpmd> ") =20 vf1_session.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=3D1024,1024 --file-prefix=3Dvf= 1 -w %s -- -i --port-topology=3Dloop \ - --rxq=3D4 --txq=3D4 --tx-offloads=3D0x8fff = --disable-rss'=20 + --rxq=3D4 --txq=3D4 --disable-rss'=20 % (self.target, self.coreMask, vf_list[1]), "testpmd>")=20 for session_name in [vf0_session, vf1_session]: @@ -272,7 +272,7 @@ class TestQinqFilter(TestCase): =20 self.dut.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=3D1024,1024 --file-prefix=3Dpf= -w %s -- -i --port-topology=3Dloop \ - --rxq=3D4 --txq=3D4 --tx-offloads=3D0x8fff = --disable-rss'=20 + --rxq=3D4 --txq=3D4 --disable-rss'=20 % (self.target, self.coreMask, self.dut.por= ts_info[dutRxPortId]['pci']), "testpmd> ") self.dut.send_expect("vlan set qinq on %s" % dutRxPortId, "testpmd= > ") @@ -292,13 +292,13 @@ class TestQinqFilter(TestCase): =20 vf0_session.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=3D1024,1024 --file-prefix=3Dvf= 0 -w %s -- -i --port-topology=3Dloop \ - --rxq=3D4 --txq=3D4 --tx-offloads=3D0x8fff = --disable-rss'=20 + --rxq=3D4 --txq=3D4 --disable-rss'=20 % (self.target, self.coreMask, vf_list[0]), "testpmd> ") =20 vf1_session.send_expect(r'./%s/app/testpmd -c %s -n 4 \ --socket-mem=3D1024,1024 --file-prefix=3Dvf= 1 -w %s -- -i --port-topology=3Dloop \ - --rxq=3D4 --txq=3D4 --tx-offloads=3D0x8fff = --disable-rss'=20 + --rxq=3D4 --txq=3D4 --disable-rss'=20 % (self.target, self.coreMask, vf_list[1]), "testpmd>")=20 for session_name in [vf0_session, vf1_session]: diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py in= dex bcf4ed8..ae97bef 100644 --- a/tests/TestSuite_sriov_kvm.py +++ b/tests/TestSuite_sriov_kvm.py @@ -350,7 +350,7 @@ class TestSriovKvm(TestCase): eal_param =3D '-b %(vf0)s -b %(vf1)s' % {'vf0': self.sriov= _vfs_port[0].pci, 'vf1': self.sriov_v= fs_port[1].pci} self.host_testpmd.start_testpmd( - "1S/2C/2T", "--rxq=3D4 --txq=3D4 --tx-offloads=3D0x8ff= f", eal_param=3Deal_param) + "1S/2C/2T", "--rxq=3D4 --txq=3D4", eal_param=3Deal_par= am) self.host_testpmd.execute_cmd('set fwd rxonly') self.host_testpmd.execute_cmd('start') =20 diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py index 25b37a3.= .0a9d66c 100644 --- a/tests/TestSuite_tso.py +++ b/tests/TestSuite_tso.py @@ -157,7 +157,7 @@ class TestTSO(TestCase): self.tester.send_expect("ethtool -K %s rx off tx off tso off gso o= ff 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 --txpt= =3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst=3D32 --tx-offloads=3D0x8= fff " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.b= lacklist, self.portMask) + cmd =3D "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=3D512=20 + --txd=3D512 --burst=3D32 --rxfreet=3D64 --mbcache=3D128 --portmask=3D%s=20 + --txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst=3D32 " % (self.t= arget,=20 + self.coreMask, self.dut.get_memory_channels(), self.blacklist,=20 + self.portMask) self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "tes= tpmd> ", 120) @@ -223,7 +223,7 @@ class TestTSO(TestCase): self.tester.send_expect("ethtool -K %s rx off tx off tso off gso o= ff 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 --txpt= =3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst=3D32 --tx-offloads=3D0x8= fff " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.b= lacklist, self.portMask) + cmd =3D "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=3D512=20 + --txd=3D512 --burst=3D32 --rxfreet=3D64 --mbcache=3D128 --portmask=3D%s=20 + --txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst=3D32 " % (self.t= arget,=20 + self.coreMask, self.dut.get_memory_channels(), self.blacklist,=20 + self.portMask) self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "tes= tpmd> ", 120) @@ -287,7 +287,7 @@ class TestTSO(TestCase): else: queues =3D 1 =20 - command_line =3D "./%s/app/testpmd -c %s -n %d %s -- -i --core= mask=3D%s --rxd=3D512 --txd=3D512 --burst=3D32 --rxfreet=3D64 --mbcache=3D1= 28 --portmask=3D%s --txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst= =3D32 --tx-offloads=3D0x8fff " % (self.target, self.all_cores_mask, self.du= t.get_memory_channels(), self.blacklist, self.coreMask, self.portMask) + command_line =3D "./%s/app/testpmd -c %s -n %d %s -- -i=20 + --coremask=3D%s --rxd=3D512 --txd=3D512 --burst=3D32 --rxfreet=3D64=20 + --mbcache=3D128 --portmask=3D%s --txpt=3D36 --txht=3D0 --txwt=3D0 --txfre= et=3D32=20 + --txrst=3D32 " % (self.target, self.all_cores_mask,=20 + self.dut.get_memory_channels(), self.blacklist, self.coreMask,=20 + self.portMask) =20 info =3D "Executing PMD using %s\n" % test_cycle['cores'] self.logger.info(info) diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py index = 945a51e..e11b482 100644 --- a/tests/TestSuite_uni_pkt.py +++ b/tests/TestSuite_uni_pkt.py @@ -64,7 +64,7 @@ class TestUniPacket(TestCase): tester_port =3D self.tester.get_local_port(self.dut_port) self.tester_iface =3D self.tester.get_interface(tester_port) self.dut.send_expect( - "./%s/app/testpmd -c f -n 4 -- -i --tx-offloads=3D0x8fff" % se= lf.target, "testpmd>", 20) + "./%s/app/testpmd -c f -n 4 -- -i" % self.target,=20 + "testpmd>", 20) self.dut.send_expect("set fwd rxonly", "testpmd>") self.dut.send_expect("set verbose 1", "testpmd>") self.dut.send_expect("start", "testpmd>") diff --git a/tests/TestS= uite_vf_offload.py b/tests/TestSuite_vf_offload.py index 020207c..2dfc424 1= 00644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -206,7 +206,7 @@ class TestVfOffload(TestCase): verify forwarded packets have correct checksum """ self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=3D%s " % - (self.portMask) + "--disable-hw-vlan= --enable-rx-cksum " + "--tx-offloads=3D0x8fff " + + (self.portMask) +=20 + "--disable-hw-vlan --enable-rx-cksum " + "" + "--port-topology=3Dloop") self.vm0_testpmd.execute_cmd('set fwd csum') =20 @@ -348,7 +348,7 @@ class TestVfOffload(TestCase): self.portMask =3D utils.create_mask([self.vm0_dut_ports[0]]) self.vm0_testpmd.start_testpmd(VM_CORES_MASK, "--portmask=3D%s " % (self.portMask) + "--enable-rx-cksum= " + - "--tx-offloads=3D0x8fff " +=20 + "" + "--port-topology=3Dloop") =20 mac =3D self.vm0_testpmd.get_port_mac(0) diff --git a/tests/TestSu= ite_vxlan.py b/tests/TestSuite_vxlan.py index fe24b7e..2e971d1 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -547,7 +547,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): =20 pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=3D4 --txq=3D4" + \ - " --nb-cores=3D4 --portmask=3D%(PORT)s --tx-offloads=3D0x8fff" + " --nb-cores=3D4 --portmask=3D%(PORT)s" pmd_cmd =3D pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @= @ -597,7 +597,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): =20 pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=3D4 --txq=3D4" + \ - " --nb-cores=3D4 --portmask=3D%(PORT)s --tx-offloads=3D0x8fff" + " --nb-cores=3D4 --portmask=3D%(PORT)s" pmd_cmd =3D pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @= @ -644,7 +644,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): # start testpmd with 2queue/1port pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --portmask=3D%(PORT)s " + \ - "--tx-offloads=3D0x8fff --enable-rx-cksum" + "--enable-rx-cksum" pmd_cmd =3D pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @= @ -717,7 +717,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): # start testpmd with 2queue/1port pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --portmask=3D%(PORT)s " + \ - "--tx-offloads=3D0x8fff --enable-rx-cksum" + "--enable-rx-cksum" pmd_cmd =3D pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @= @ -792,7 +792,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): """ pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=3D4 --txq=3D4" + \ - " --nb-cores=3D4 --portmask=3D%(PORT)s --tx-offloads=3D0x8fff" + " --nb-cores=3D4 --portmask=3D%(PORT)s" pmd_cmd =3D pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @= @ -833,7 +833,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): =20 pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=3D4 --txq=3D4" + \ - " --nb-cores=3D4 --portmask=3D%(PORT)s --tx-offloads=3D0x8fff" + " --nb-cores=3D4 --portmask=3D%(PORT)s" pmd_cmd =3D pmd_temp % {'TARGET': self.target, 'COREMASK': self.coremask, 'CHANNEL': self.dut.get_memory_channels(), @= @ -962,7 +962,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): =20 pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=3D2 --txq=3D2" + \ - " --nb-cores=3D4 --portmask=3D%(PORT)s --tx-offloads=3D0x8fff" + " --nb-cores=3D4 --portmask=3D%(PORT)s" =20 for perf_config in self.tunnel_perf: tun_filter =3D perf_config['tunnel_filter'] @@ -973,7 +973,7 @= @ class TestVxlan(TestCase, IxiaPacketGenerator): if tun_filter =3D=3D "None" and recv_queue =3D=3D "Multi": pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n = " + \ "%(CHANNEL)d -- -i --rss-udp --rxq=3D2 --txq=3D2" + \ - " --nb-cores=3D4 --portmask=3D%(PORT)s --tx-offloads= =3D0x8fff" + " --nb-cores=3D4 --portmask=3D%(PORT)s" =20 pmd_cmd =3D pmd_temp % {'TARGET': self.target, 'COREMASK': core_mask, @@ -1074,11 +1074= ,11 @@ class TestVxlan(TestCase, IxiaPacketGenerator): if recv_queue =3D=3D 'Multi': pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n = " + \ "%(CHANNEL)d -- -i --disable-rss --rxq=3D2 --txq=3D2" = + \ - " --nb-cores=3D4 --portmask=3D%(PORT)s --tx-offloads= =3D0x8fff" + " --nb-cores=3D4 --portmask=3D%(PORT)s" else: pmd_temp =3D "./%(TARGET)s/app/testpmd -c %(COREMASK)s -n = " + \ "%(CHANNEL)d -- -i --nb-cores=3D2 --portmask=3D%(PORT)= s" + \ - " --tx-offloads=3D0x8fff" + "" =20 pmd_cmd =3D pmd_temp % {'TARGET': self.target, 'COREMASK': core_mask, -- 1.8.3.1