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 11F11A04F5; Fri, 19 Jun 2020 05:23:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 07DB9E07; Fri, 19 Jun 2020 05:23:13 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id CEC44DE3 for ; Fri, 19 Jun 2020 05:23:11 +0200 (CEST) IronPort-SDR: Bhie9GTY1yjMDtMNIFYQ1pbVrhaPmzrPmhuvYIgAyoHmabGf4r90m248pYTe6yLczgNUPS9esJ N0ijFyzyBiYA== X-IronPort-AV: E=McAfee;i="6000,8403,9656"; a="208061680" X-IronPort-AV: E=Sophos;i="5.75,253,1589266800"; d="scan'208";a="208061680" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2020 20:23:10 -0700 IronPort-SDR: UfKSGMQ3A1hw7DQo1579jvhdfpNZh8OPGx3ZVAjr0eGfTp2R1cBH7sTlVprtoJE8t9akmEjGC/ VZ9ouxLgVV5Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,253,1589266800"; d="scan'208";a="383714341" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 18 Jun 2020 20:23:10 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jun 2020 20:23:10 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jun 2020 20:23:10 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0439.000; Fri, 19 Jun 2020 11:23:06 +0800 From: "Tu, Lijuan" To: "Han, YingyaX" , "dts@dpdk.org" CC: "Han, YingyaX" Thread-Topic: [dts] [PATCH V1]: add dut ports pci when app starts Thread-Index: AQHWOvzep6/t1xbUJU2ly5Wcr419JqjfW+HQ Date: Fri, 19 Jun 2020 03:23:05 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5F9C4@SHSMSX101.ccr.corp.intel.com> References: <20200605054425.68357-1-yingyax.han@intel.com> In-Reply-To: <20200605054425.68357-1-yingyax.han@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.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]: add dut ports pci when app starts 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, thanks -----Original Message----- From: dts On Behalf Of hanyingya Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B5=1B$BF|=1B(B 13:44 To: dts@dpdk.org Cc: Han, YingyaX Subject: [dts] [PATCH V1]: add dut ports pci when app starts Fix the problem that the dut ports are not clear when starting trex. Signed-off-by: hanyingya --- tests/TestSuite_ipfrag.py | 7 +++-- tests/TestSuite_l2fwd.py | 7 +++-- tests/TestSuite_multiprocess.py | 39 ++++++++++++++------------- tests/TestSuite_performance_thread.py | 7 +++-- tests/TestSuite_tso.py | 12 +++++---- tests/TestSuite_vf_l3fwd.py | 2 +- tests/TestSuite_vmdq.py | 7 +++-- tests/TestSuite_vmdq_dcb.py | 7 +++-- 8 files changed, 54 insertions(+), 34 deletions(-) diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py index 52= e2cb0..cbcd5fe 100644 --- a/tests/TestSuite_ipfrag.py +++ b/tests/TestSuite_ipfrag.py @@ -302,10 +302,13 @@ l3fwd_ipv4_route_array[] =3D {\\\n" core_mask =3D utils.create_mask(self.dut.get_core_list(lcore)) =20 portmask =3D utils.create_mask([P0, P1]) + eal_param =3D "" + for i in [P0, P1]: + eal_param +=3D " -w %s" % self.dut.ports_info[i]['pci'] =20 self.dut.send_expect("^c", "# ", 120) - self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmenta= tion -c %s -n %d -- -p %s -q %s" % ( - core_mask, self.dut.get_memory_channels(), portmask, num_pthre= ads), "IP_FRAG:", 120) + self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmenta= tion -c %s -n %d %s -- -p %s -q %s" % ( + core_mask, self.dut.get_memory_channels(), eal_param,=20 + portmask, num_pthreads), "IP_FRAG:", 120) =20 result =3D [2, lcore, num_pthreads] for size in size_list: diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py index 4a47= c02..f8c0d72 100644 --- a/tests/TestSuite_l2fwd.py +++ b/tests/TestSuite_l2fwd.py @@ -172,6 +172,9 @@ class TestL2fwd(TestCase): cores =3D self.dut.get_core_list(self.core_config, socket=3Dself.p= orts_socket) =20 eal_params =3D self.dut.create_eal_parameters(cores=3Dcores) + eal_param =3D "" + for i in ports: + eal_param +=3D " -w %s" % self.dut.ports_info[i]['pci'] =20 for frame_size in self.frame_sizes: =20 @@ -193,8 +196,8 @@ class TestL2fwd(TestCase): =20 for queues in self.test_queues: =20 - command_line =3D "./examples/l2fwd/build/l2fwd %s -- -q %s= -p %s &" % \ - (eal_params, str(queues['queues']), port_mask) + command_line =3D "./examples/l2fwd/build/l2fwd %s %s -- -q= %s -p %s &" % \ + (eal_params, eal_param, str(queues['queues']),=20 + port_mask) =20 # self.dut.send_expect(command_line, "memory mapped", 60) self.dut.send_expect(command_line, "L2FWD: entering main l= oop", 60) diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_mu= ltiprocess.py index a6af875..0ede8bf 100644 --- a/tests/TestSuite_multiprocess.py +++ b/tests/TestSuite_multiprocess.py @@ -71,6 +71,9 @@ class TestMultiprocess(TestCase): executions.append({'nprocs': 4, 'cores': '1S/4C/1T', 'pps': 0}) executions.append({'nprocs': 8, 'cores': '1S/4C/2T', 'pps': 0}) =20 + self.eal_param =3D "" + for i in self.dut_ports: + self.eal_param +=3D " -w %s" % self.dut.ports_info[i]['pci'] # start new session to run secondary self.session_secondary =3D self.dut.new_session() =20 @@ -97,12 +100,12 @@ class TestMultiprocess(TestCase): # Send message from secondary to primary cores =3D self.dut.get_core_list('1S/2C/1T', socket=3Dself.socket) coremask =3D utils.create_mask(cores) - self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple= _mp -n 1 -c %s --proc-type=3Dprimary" % (self.target, coremask), + =20 + self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp=20 + -n 1 -c %s %s --proc-type=3Dprimary" % (self.target, coremask,=20 + self.eal_param), "Finished Process Init", 100) time.sleep(20) coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") self.session_secondary.send_expect( - "./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --= proc-type=3Dsecondary" % (self.target, coremask), "Finished Process Init", + "./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s=20 + %s --proc-type=3Dsecondary" % (self.target, coremask, self.eal_param),=20 + "Finished Process Init", 100) =20 self.session_secondary.send_expect("send hello_primary", ">") @@ -= 114,10 +117,10 @@ class TestMultiprocess(TestCase): cores =3D self.dut.get_core_list('1S/2C/1T', socket=3Dself.socket) coremask =3D utils.create_mask(cores) self.session_secondary.send_expect( - "./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --= proc-type=3Dprimary " % (self.target, coremask), "Finished Process Init", 1= 00) + "./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s=20 + %s --proc-type=3Dprimary " % (self.target, coremask, self.eal_param),=20 + "Finished Process Init", 100) time.sleep(20) coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") - self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple= _mp -n 1 -c %s --proc-type=3Dsecondary" % (self.target, coremask), + =20 + self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp=20 + -n 1 -c %s %s --proc-type=3Dsecondary" % (self.target, coremask,=20 + self.eal_param), "Finished Process Init", 100) self.session_secondary.send_expect("send hello_secondary", ">") out =3D self.dut.get_session_output() @@ -134,11 +137,11 @@ class = TestMultiprocess(TestCase): =20 cores =3D self.dut.get_core_list('1S/2C/1T', socket=3Dself.socket) coremask =3D utils.create_mask(cores) - self.session_secondary.send_expect("./examples/multi_process/simpl= e_mp/%s/simple_mp -n 1 -c %s --proc-type=3Dprimary" % (self.target, coremas= k), + =20 + self.session_secondary.send_expect("./examples/multi_process/simple_mp + /%s/simple_mp -n 1 -c %s %s --proc-type=3Dprimary" % (self.target,=20 + coremask, self.eal_param), "Finished Process Init", 100) time.sleep(20) coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") - self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple= _mp -n 1 -c %s --proc-type=3Dsecondary" % (self.target, coremask), + =20 + self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp=20 + -n 1 -c %s %s --proc-type=3Dsecondary" % (self.target, coremask,=20 + self.eal_param), "Finished Process Init", 100) stringsSent =3D 0 for line in open('/usr/share/dict/words', 'r').readlines(): @@ -160,13 +163,13 @@ class TestMultiprocess(TestCase): # Send message from secondary to primary (auto process type) cores =3D self.dut.get_core_list('1S/2C/1T', socket=3Dself.socket) coremask =3D utils.create_mask(cores) - out =3D self.dut.send_expect("./examples/multi_process/simple_mp/%= s/simple_mp -n 1 -c %s --proc-type=3Dauto " % (self.target, coremask), + out =3D=20 + self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp=20 + -n 1 -c %s %s --proc-type=3Dauto " % (self.target, coremask,=20 + self.eal_param), "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: PRIMARY" in out, "Th= e type of process (PRIMARY) was not detected properly") time.sleep(20) coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") out =3D self.session_secondary.send_expect( - "./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --= proc-type=3Dauto" % (self.target, coremask), "Finished Process Init", 100) + "./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s=20 + %s --proc-type=3Dauto" % (self.target, coremask, self.eal_param),=20 + "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: SECONDARY" in out, "The type of process (SECONDARY) was not detected prop= erly") =20 @@ -180,11 +183,11 @@ class TestMultiprocess(TestCase): cores =3D self.dut.get_core_list('1S/2C/1T', socket=3Dself.socket) coremask =3D utils.create_mask(cores) out =3D self.session_secondary.send_expect( - "./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --= proc-type=3Dauto" % (self.target, coremask), "Finished Process Init", 100) + "./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s=20 + %s --proc-type=3Dauto" % (self.target, coremask, self.eal_param),=20 + "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: PRIMARY" in out, "Th= e type of process (PRIMARY) was not detected properly") time.sleep(20) coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") - out =3D self.dut.send_expect("./examples/multi_process/simple_mp/%= s/simple_mp -n 1 -c %s --proc-type=3Dauto" % (self.target, coremask), + out =3D=20 + self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp=20 + -n 1 -c %s %s --proc-type=3Dauto" % (self.target, coremask,=20 + self.eal_param), "Finished Process Init", 100) self.verify("EAL: Auto-detected process type: SECONDARY" in out, "= The type of process (SECONDARY) was not detected properly") self.session_secondary.send_expect("send hello_secondary", ">", 10= 0) @@ -202,10 +205,10 @@ class TestMultiprocess(TestCase): =20 cores =3D self.dut.get_core_list('1S/2C/1T', socket=3Dself.socket) coremask =3D utils.create_mask(cores) - self.session_secondary.send_expect("./examples/multi_process/simpl= e_mp/%s/simple_mp -n 1 -c %s -m 64" % (self.target, coremask), + =20 + self.session_secondary.send_expect("./examples/multi_process/simple_mp + /%s/simple_mp -n 1 -c %s %s -m 64" % (self.target, coremask,=20 + self.eal_param), "Finished Process Init", 100) coremask =3D hex(int(coremask, 16) * 0x10).rstrip("L") - out =3D self.dut.send_expect("./examples/multi_process/simple_mp/%= s/simple_mp -n 1 -c %s" % (self.target, coremask), "# ", 100) + out =3D=20 + self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp=20 + -n 1 -c %s %s" % (self.target, coremask, self.eal_param), "# ", 100) =20 self.verify("Is another primary process running" in out, "No other primary process detected") @@ -245,8 +248,8 = @@ class TestMultiprocess(TestCase): execution =3D validExecutions[n] coreMask =3D utils.create_mask(self.dut.get_core_list(executio= n['cores'], socket=3Dself.socket)) self.session_secondary.send_expect( - "./examples/multi_process/symmetric_mp/%s/symmetric_mp -c = %s --proc-type=3Dauto -- -p %s --num-procs=3D%d --proc-id=3D%d" % ( - self.target, coreMask, portMask, execution['nprocs'], = n), "Finished Process Init") + "./examples/multi_process/symmetric_mp/%s/symmetric_mp -c = %s %s --proc-type=3Dauto -- -p %s --num-procs=3D%d --proc-id=3D%d" % ( + self.target, coreMask, self.eal_param, portMask,=20 + execution['nprocs'], n), "Finished Process Init") =20 # clear streams before add new streams self.tester.pktgen.clear_streams() @@ -298,16 +301,16 @@ class TestMultiprocess(TestCase): =20 coreMask =3D utils.create_mask(self.dut.get_core_list('1S/1C/1= T')) portMask =3D utils.create_mask(self.dut_ports) - self.dut.send_expect("./examples/multi_process/client_server_m= p/mp_server/%s/mp_server -n %d -c %s -- -p %s -n %d" % ( - self.target, self.dut.get_memory_channels(), "0xA0", portM= ask, execution['nprocs']), "Finished Process Init", 20) + self.dut.send_expect("./examples/multi_process/client_server_m= p/mp_server/%s/mp_server -n %d -c %s %s -- -p %s -n %d" % ( + self.target, self.dut.get_memory_channels(), "0xA0",=20 + self.eal_param, portMask, execution['nprocs']), "Finished Process=20 + Init", 20) self.dut.send_expect("^Z", "\r\n") self.dut.send_expect("bg", "# ") =20 for n in range(execution['nprocs']): time.sleep(5) coreMask =3D utils.create_mask([coreList[n]]) - self.dut.send_expect("./examples/multi_process/client_serv= er_mp/mp_client/%s/mp_client -n %d -c %s --proc-type=3Dsecondary -- -n %d" = % ( - self.target, self.dut.get_memory_channels(), coreMask,= n), "Finished Process Init") + self.dut.send_expect("./examples/multi_process/client_serv= er_mp/mp_client/%s/mp_client -n %d -c %s %s --proc-type=3Dsecondary -- -n %= d" % ( + self.target, self.dut.get_memory_channels(),=20 + coreMask, self.eal_param, n), "Finished Process Init") self.dut.send_expect("^Z", "\r\n") self.dut.send_expect("bg", "# ") =20 diff --git a/tests/TestSuite_performance_thread.py b/tests/TestSuite_perfor= mance_thread.py index 5e6b74b..2ede5b5 100644 --- a/tests/TestSuite_performance_thread.py +++ b/tests/TestSuite_performance_thread.py @@ -189,14 +189,17 @@ class TestPerformanceThread(TestCase): self.test_results["header"] =3D header_row self.result_table_create(header_row) self.test_results["data"] =3D [] + eal_param =3D "" + for i in valports: + eal_param +=3D " -w %s" % self.dut.ports_info[i]['pci'] =20 for cores in self.nb_cores: core_list, core_mask =3D self.create_cores(cores) lcore_config, rx, tx =3D self.config_rx_tx(cores, core_list) if self.running_case is "test_perf_n_lcore_per_pcore": - cmdline =3D "{} -n 4 --lcores=3D'{}' {} --rx=3D'{}' --tx= =3D'{}'".format(self.path, lcore_config, params, rx, tx) + cmdline =3D "{} -n 4 {} --lcores=3D'{}' {} --rx=3D'{}'=20 + --tx=3D'{}'".format(self.path, eal_param, lcore_config, params, rx, tx) else: - cmdline =3D "{} -c {} {} --rx=3D'{}' --tx=3D'{}'".format(s= elf.path, core_mask, params, rx, tx) + cmdline =3D "{} -c {} {} {} --rx=3D'{}'=20 + --tx=3D'{}'".format(self.path, core_mask, eal_param, params, rx, tx) self.dut.send_expect(cmdline, "L3FWD:", 120) =20 for frame_size in self.frame_sizes: diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py index eaafd9a.= .db98110 100644 --- a/tests/TestSuite_tso.py +++ b/tests/TestSuite_tso.py @@ -77,7 +77,9 @@ class TestTSO(TestCase): self.table_header.append("%s Mpps" % test_cycle['cores']) self.table_header.append("% linerate") =20 - self.blacklist =3D "" + self.eal_param =3D "" + for i in self.dut_ports: + self.eal_param +=3D " -w %s" % self.dut.ports_info[i]['pci'] =20 self.headers_size =3D HEADER_SIZE['eth'] + HEADER_SIZE[ 'ip'] + HEADER_SIZE['tcp'] @@ -208,9 +210,9 @@ class TestTSO(TestCase): self.tester.send_expect("ip l set %s up" % tx_interface, "# ") =20 if (self.nic in ["cavium_a063","cavium_a064"]): - cmd =3D "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=3D512 --t= xd=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.blacklist, self.portMask, TSO_MTU) + 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 + --max-pkt-len=3D%s --txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txr= st=3D32=20 + --tx-offloads=3D0x8000" % (self.target, self.coreMask,=20 + self.dut.get_memory_channels(), self.eal_param, self.portMask,=20 + TSO_MTU) else: - cmd =3D "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=3D512 --t= xd=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.target, self.coreMask, self.dut.get_memory_channels(), self.black= list, self.portMask, TSO_MTU) + 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 + --max-pkt-len=3D%s --txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txr= st=3D32 "=20 + % (self.target, self.coreMask, self.dut.get_memory_channels(),=20 + self.eal_param, self.portMask, TSO_MTU) =20 self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) @@ -305,7 = +307,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 --max-pk= t-len=3D%s --txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst=3D32 " = % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blackli= st, self.portMask, TSO_MTU) + 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 + --max-pkt-len=3D%s --txpt=3D36 --txht=3D0 --txwt=3D0 --txfreet=3D32 --txr= st=3D32 "=20 + % (self.target, self.coreMask, self.dut.get_memory_channels(),=20 + self.eal_param, 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) @@ -407,7 = +409,7 @@ class TestTSO(TestCase): else: queues =3D 1 =20 - command_line =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.target, self.coreMask, self.dut.get_memory_channels()= , self.blacklist, self.portMask, TSO_MTU) + command_line =3D "./%s/app/testpmd -c %s -n %d %s -- -i=20 + --rxd=3D512 --txd=3D512 --burst=3D32 --rxfreet=3D64 --mbcache=3D128=20 + --portmask=3D%s --max-pkt-len=3D%s --txpt=3D36 --txht=3D0 --txwt=3D0=20 + --txfreet=3D32 --txrst=3D32 " % (self.target, self.coreMask,=20 + self.dut.get_memory_channels(), self.eal_param, self.portMask,=20 + TSO_MTU) info =3D "Executing PMD using %s\n" % test_cycle['cores'] self.logger.info(info) self.rst_report(info, annex=3DTrue) diff --git a/tests/TestSui= te_vf_l3fwd.py b/tests/TestSuite_vf_l3fwd.py index 2416a40..471fe61 100644 --- a/tests/TestSuite_vf_l3fwd.py +++ b/tests/TestSuite_vf_l3fwd.py @@ -136,7 +136,7 @@ class TestVfL3fwd(TestCase): self.host_testpmd =3D PmdOutput(self.dut) eal_param =3D '--socket-mem=3D1024,1024 --file-prefix=3Dpf= ' for i in valports: - eal_param +=3D ' -b %s' % self.sriov_vfs_port[i][0].pc= i + eal_param +=3D ' -w %s' %=20 + self.dut.ports_info[i]['pci'] core_config =3D self.cores[:len(valports)] self.host_testpmd.start_testpmd(core_config, "", eal_param= =3Deal_param) for i in valports: diff --git a/tests/TestSuite_vmdq.py b/tests/TestSuite_vmdq.py index cb6bdf= 0..e5dcd82 100644 --- a/tests/TestSuite_vmdq.py +++ b/tests/TestSuite_vmdq.py @@ -82,9 +82,12 @@ class TestVmdq(TestCase): self.verify(core_list is not None, "Requested cores failed") core_mask =3D utils.create_mask(core_list) port_mask =3D utils.create_mask(self.dut_ports) + eal_param =3D "" + for i in self.dut_ports: + eal_param +=3D " -w %s" % self.dut.ports_info[i]['pci'] # Run the application - self.dut.send_expect("./examples/vmdq/build/vmdq_app -c %s -n 4 --= -p %s --nb-pools %s --enable-rss" % - (core_mask, port_mask, str(npools)), "reading= queues", 120) + self.dut.send_expect("./examples/vmdq/build/vmdq_app -c %s -n 4 %s= -- -p %s --nb-pools %s --enable-rss" % + (core_mask, eal_param, port_mask,=20 + str(npools)), "reading queues", 120) =20 def get_tgen_input(self, prios): """ diff --git a/tests/TestSuite_vmdq_dcb.py b/tests/TestSuite_vmdq_dcb.py inde= x 44abffc..6c71365 100644 --- a/tests/TestSuite_vmdq_dcb.py +++ b/tests/TestSuite_vmdq_dcb.py @@ -110,9 +110,12 @@ class TestVmdqDcb(TestCase): self.verify(core_list is not None, "Requested %d cores failed" % n= tcs) core_mask =3D utils.create_mask(core_list) port_mask =3D utils.create_mask(self.dut_ports) + eal_param =3D "" + for i in self.dut_ports: + eal_param +=3D " -w %s" % self.dut.ports_info[i]['pci'] # Run the application - self.dut.send_expect("./examples/vmdq_dcb/build/vmdq_dcb_app -c %s= -n 4 -- -p %s --nb-pools %s --nb-tcs %s " - "--enable-rss" % (core_mask, port_mask, str(n= pools), str(ntcs)), "reading queues", 120) + self.dut.send_expect("./examples/vmdq_dcb/build/vmdq_dcb_app -c %s= -n 4 %s -- -p %s --nb-pools %s --nb-tcs %s " + "--enable-rss" % (core_mask, eal_param,=20 + port_mask, str(npools), str(ntcs)), "reading queues", 120) =20 def create_pcaps(self, prios): """ -- 2.17.1