From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DD03EA0C41; Tue, 3 Aug 2021 07:38:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA4D640E32; Tue, 3 Aug 2021 07:38:36 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 8FCCB4069C for ; Tue, 3 Aug 2021 07:38:34 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="200787172" X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="200787172" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 22:38:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,291,1620716400"; d="scan'208";a="520985598" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga002.fm.intel.com with ESMTP; 02 Aug 2021 22:38:33 -0700 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 2 Aug 2021 22:38:32 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 3 Aug 2021 13:38:30 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.010; Tue, 3 Aug 2021 13:38:30 +0800 From: "Tu, Lijuan" To: "Chen, LingliX" , "dts@dpdk.org" CC: "Chen, LingliX" , "Wang, Yinan" Thread-Topic: [dts] [PATCH V2] tests/vm2vm_virtio_pmd: fix script issues Thread-Index: AQHXhCE0rc0/HqkQoU6P1jaPNe0176thSAKA Date: Tue, 3 Aug 2021 05:38:30 +0000 Message-ID: References: <20210729102738.87558-1-linglix.chen@intel.com> In-Reply-To: <20210729102738.87558-1-linglix.chen@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2] tests/vm2vm_virtio_pmd: fix script issues X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: dts On Behalf Of Lingli Chen > Sent: 2021=1B$BG/=1B(B7=1B$B7n=1B(B29=1B$BF|=1B(B 18:28 > To: dts@dpdk.org > Cc: Chen, LingliX > Subject: [dts] [PATCH V2] tests/vm2vm_virtio_pmd: fix script issues >=20 > 1.Launch virtio-pmd on VM with_mergeable_path add --rx- > offloads=3D0x00002000, according to dpdk commit 4e8169eb0d2d("net/virtio:= fix > Rx scatter offload"). Add some description of 0x00002000 is necessary, what does it mean? > 2.start_vms() use qemu_path instead mode and mergeable parameters. qemu_path is very confused, normally it means the qemu binary path in OS. Strongly use other name instead, such as opt_setting, opt_args, etc. > 3.fix script issues:influence between cases. >=20 > Signed-off-by: Lingli Chen > --- > V2:modifie comment use git commit description style. > V1:modifie script. >=20 > tests/TestSuite_vm2vm_virtio_pmd.py | 97 ++++++++++++++--------------- > 1 file changed, 48 insertions(+), 49 deletions(-) >=20 > diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py > b/tests/TestSuite_vm2vm_virtio_pmd.py > index 44f17a36..99a4602b 100644 > --- a/tests/TestSuite_vm2vm_virtio_pmd.py > +++ b/tests/TestSuite_vm2vm_virtio_pmd.py > @@ -66,6 +66,7 @@ class TestVM2VMVirtioPMD(TestCase): > self.pmd_vhost =3D PmdOutput(self.dut, self.vhost_user) > self.cbdma_dev_infos =3D [] > self.vm_config =3D 'vhost_sample' > + self.device_str =3D ' ' >=20 > def set_up(self): > """ > @@ -155,20 +156,20 @@ class TestVM2VMVirtioPMD(TestCase): > w_pci_str =3D ' '.join(w_pci_list) > if path_mode =3D=3D "mergeable": > command =3D self.app_testpmd_path + " -c 0x3 -n 4 " + \ > - "--file-prefix=3Dvirtio -- -i --tx-offloads=3D0x= 00 " + \ > - "--enable-hw-vlan-strip " + "--txq=3D{0} --rxq= =3D{0} ".format(queues) if > queues else "" > + "--file-prefix=3Dvirtio -- -i --tx-offloads=3D0x= 00 --rx- > offloads=3D0x00002000 " + \ > + "--enable-hw-vlan-strip " + ("--txq=3D{0} > + --rxq=3D{0} ".format(queues) if queues else "") DTS provides generic API for testpmd, please leverage them thanks. >=20 > command =3D command + "--txd=3D1024 --rxd=3D1024 %s" > vm_client.send_expect(command % extern_param, "testpmd> ", 2= 0) > elif path_mode =3D=3D "normal": > command =3D self.app_testpmd_path + " -c 0x3 -n 4 " + \ > "--file-prefix=3Dvirtio -- -i --tx-offloads=3D0x= 00 " + \ > - "--enable-hw-vlan-strip " + "--txq=3D{0} --rxq= =3D{0} ".format(queues) if > queues else "" > + "--enable-hw-vlan-strip " + ("--txq=3D{0} > + --rxq=3D{0} ".format(queues) if queues else "") > command =3D command + "--txd=3D1024 --rxd=3D1024 %s" > vm_client.send_expect(command % extern_param, "testpmd> ", 2= 0) > elif path_mode =3D=3D "vector_rx": > command =3D self.app_testpmd_path + " -c 0x3 -n 4 " + \ > - "--file-prefix=3Dvirtio %s -- -i" + "--txq=3D{0}= --rxq=3D{0} ".format(queues) > if queues else "" > + "--file-prefix=3Dvirtio %s -- -i " + ("--txq=3D{= 0} > + --rxq=3D{0} ".format(queues) if queues else "") > command =3D command + "--txd=3D1024 --rxd=3D1024 %s" > vm_client.send_expect(command % (w_pci_str, extern_param), "= testpmd> > ", 20) >=20 > @@ -188,29 +189,16 @@ class TestVM2VMVirtioPMD(TestCase): > "--pdump '%s,queue=3D*,rx-dev=3D%s,mbuf-size=3D8000= '" > self.pdump_session.send_expect(command_line % (self.dut.pref= ix_subfix, > dump_port, self.dump_pcap), 'Port') >=20 > - def start_vms(self, mode=3D0, mergeable=3DTrue, server_mode=3DFalse, > opt_queue=3DNone, vm_config=3D''): > + def start_vms(self, qemu_path=3D'', server_mode=3DFalse, opt_queue= =3DNone, > vm_config=3D'vhost_sample'): > """ > start two VM, each VM has one virtio device > """ > # for virtio 0.95, start vm with "disable-modern=3Dtrue" > # for virito 1.0, start vm with "disable-modern=3Dfalse" > - if mode =3D=3D 0: > - setting_args =3D "disable-modern=3Dtrue" > - elif mode =3D=3D 1: > - setting_args =3D "disable-modern=3Dfalse" > - elif mode =3D=3D 2: > - setting_args =3D "disable-modern=3Dfalse,packed=3Don" > - if mergeable is True: > - setting_args +=3D "," + "mrg_rxbuf=3Don" > - else: > - setting_args +=3D "," + "mrg_rxbuf=3Doff" > vm_params =3D {} > - if opt_queue > 1: > - setting_args +=3D > ",csum=3Don,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don= ,guest_ > ufo=3Don,host_ufo=3Don" > + > + if opt_queue is not None: > vm_params['opt_queue'] =3D opt_queue > - setting_args =3D setting_args + ",mq=3Don,vectors=3D40" > - else: > - setting_args +=3D > ",csum=3Don,gso=3Don,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest= _ecn=3Don > " >=20 > for i in range(self.vm_num): > vm_dut =3D None > @@ -222,7 +210,7 @@ class TestVM2VMVirtioPMD(TestCase): > else: > vm_params['opt_path'] =3D self.base_dir + '/vhost-net%d'= % i + ',server' > vm_params['opt_mac'] =3D "52:54:00:00:00:0%d" % (i+1) > - vm_params['opt_settings'] =3D setting_args > + vm_params['opt_settings'] =3D qemu_path > vm_info.set_vm_device(**vm_params) > time.sleep(3) > try: > @@ -304,62 +292,67 @@ class TestVM2VMVirtioPMD(TestCase): >=20 > def test_vhost_vm2vm_virtio_pmd_with_normal_path(self): > """ > - vhost-user + virtio-pmd with normal path > + Test Case 2: vhost-user + virtio-pmd with normal path > """ > + qemu_path =3D "disable- > modern=3Dtrue,mrg_rxbuf=3Doff,csum=3Don,guest_csum=3Don,host_tso4=3Don,gu= est_tso > 4=3Don,guest_ecn=3Don" > path_mode =3D "normal" > self.get_core_list(2) > self.start_vhost_testpmd() > - self.start_vms(mode=3D0, mergeable=3DFalse) > + self.start_vms(qemu_path=3Dqemu_path) > self.start_vm_testpmd(self.vm_dut[0], path_mode) > self.start_vm_testpmd(self.vm_dut[1], path_mode) > self.send_and_verify(mode=3D"virtio 0.95 normal path", path=3Dpa= th_mode) >=20 > def test_vhost_vm2vm_virito_10_pmd_with_normal_path(self): > """ > - vhost-user + virtio1.0-pmd with normal path > + Test Case 4: vhost-user + virtio1.0-pmd with normal path > """ > path_mode =3D "normal" > + qemu_path =3D "disable- > modern=3Dfalse,mrg_rxbuf=3Doff,csum=3Don,guest_csum=3Don,host_tso4=3Don,g= uest_tso > 4=3Don,guest_ecn=3Don" > self.get_core_list(2) > self.start_vhost_testpmd() > - self.start_vms(mode=3D1, mergeable=3DFalse) > + self.start_vms(qemu_path=3Dqemu_path) > self.start_vm_testpmd(self.vm_dut[0], path_mode) > self.start_vm_testpmd(self.vm_dut[1], path_mode) > self.send_and_verify(mode=3D"virtio 1.0 normal path", path=3Dpat= h_mode) >=20 > def test_vhost_vm2vm_virtio_pmd_with_vector_rx_path(self): > """ > - vhost-user + virtio-pmd with vector_rx path > + Test Case 1: vhost-user + virtio-pmd with vector_rx path > """ > path_mode =3D "vector_rx" > + qemu_path =3D "disable- > modern=3Dtrue,mrg_rxbuf=3Doff,csum=3Don,guest_csum=3Don,host_tso4=3Don,gu= est_tso > 4=3Don,guest_ecn=3Don" > self.get_core_list(2) > self.start_vhost_testpmd() > - self.start_vms(mode=3D0, mergeable=3DFalse) > + self.start_vms(qemu_path=3Dqemu_path) > self.start_vm_testpmd(self.vm_dut[0], path_mode, virtio_net_pci = =3D > self.vm_dut[0].ports_info[0]['pci']) > self.start_vm_testpmd(self.vm_dut[1], path_mode, virtio_net_pci = =3D > self.vm_dut[1].ports_info[0]['pci']) > self.send_and_verify(mode=3D"virtio 0.95 vector_rx", path=3Dpath= _mode) >=20 > def test_vhost_vm2vm_virtio_10_pmd_with_vector_rx_path(self): > """ > - vhost-user + virtio1.0-pmd with vector_rx path > + Test Case 3: vhost-user + virtio1.0-pmd with vector_rx path > """ > path_mode =3D "vector_rx" > + qemu_path =3D "disable- > modern=3Dfalse,mrg_rxbuf=3Doff,csum=3Don,guest_csum=3Don,host_tso4=3Don,g= uest_tso > 4=3Don,guest_ecn=3Don" > self.get_core_list(2) > self.start_vhost_testpmd() > - self.start_vms(mode=3D1, mergeable=3DFalse) > + self.start_vms(qemu_path=3Dqemu_path) > self.start_vm_testpmd(self.vm_dut[0], path_mode, virtio_net_pci = =3D > self.vm_dut[0].ports_info[0]['pci']) > self.start_vm_testpmd(self.vm_dut[1], path_mode, virtio_net_pci = =3D > self.vm_dut[1].ports_info[0]['pci']) > self.send_and_verify(mode=3D"virtio 1.0 vector_rx", path=3Dpath_= mode) >=20 > def test_vhost_vm2vm_virito_pmd_with_mergeable_path(self): > """ > - vhost-user + virtio-pmd with mergeable path test with payload ch= eck > + Test Case 5: vhost-user + virtio-pmd with mergeable path test > + with payload check > """ > path_mode =3D "mergeable" > + qemu_path =3D "disable- > modern=3Dtrue,mrg_rxbuf=3Don,csum=3Don,guest_csum=3Don,host_tso4=3Don,gue= st_tso4 > =3Don,guest_ecn=3Don" > extern_param =3D '--max-pkt-len=3D9600' > dump_port =3D 'port=3D0' > self.get_core_list(2) > self.start_vhost_testpmd() > - self.start_vms(mode=3D0, mergeable=3DTrue) > + self.start_vms(qemu_path=3Dqemu_path) > # git the vm enough huge to run pdump > self.vm_dut[0].set_huge_pages(2048) > # start testpmd and pdump in VM0 @@ -377,14 +370,15 @@ class > TestVM2VMVirtioPMD(TestCase): >=20 > def test_vhost_vm2vm_virito_10_pmd_with_mergeable_path(self): > """ > - vhost-user + virtio1.0-pmd with mergeable path test with payload= check > + Test Case 6: vhost-user + virtio1.0-pmd with mergeable path > + test with payload check > """ > path_mode =3D "mergeable" > + qemu_path =3D "disable- > modern=3Dfalse,mrg_rxbuf=3Don,csum=3Don,guest_csum=3Don,host_tso4=3Don,gu= est_tso > 4=3Don,guest_ecn=3Don" > extern_param =3D '--max-pkt-len=3D9600' > dump_port =3D 'port=3D0' > self.get_core_list(2) > self.start_vhost_testpmd() > - self.start_vms(mode=3D1, mergeable=3DTrue) > + self.start_vms(qemu_path=3Dqemu_path) > # git the vm enough huge to run pdump > self.vm_dut[0].set_huge_pages(2048) > # start testpmd and pdump in VM0 @@ -402,26 +396,28 @@ class > TestVM2VMVirtioPMD(TestCase): >=20 > def test_vhost_vm2vm_virito_11_pmd_with_normal_path(self): > """ > - vhost-user + virtio1.0-pmd with normal path > + Test Case 8: vhost-user + virtio1.0-pmd with normal path > """ > path_mode =3D "normal" > + qemu_path =3D "disable- > modern=3Dfalse,mrg_rxbuf=3Doff,csum=3Don,guest_csum=3Don,host_tso4=3Don,g= uest_tso > 4=3Don,guest_ecn=3Don,packed=3Don" > self.get_core_list(2) > self.start_vhost_testpmd() > - self.start_vms(mode=3D2, mergeable=3DFalse) > + self.start_vms(qemu_path=3Dqemu_path) > self.start_vm_testpmd(self.vm_dut[0], path_mode) > self.start_vm_testpmd(self.vm_dut[1], path_mode) > self.send_and_verify(mode=3D"virtio 1.0 normal path", path=3Dpat= h_mode) >=20 > def test_vhost_vm2vm_virito_11_pmd_with_mergeable_path(self): > """ > - vhost-user + virtio1.0-pmd with mergeable path test with payload= check > + Test Case 7: vhost-user + virtio1.0-pmd with mergeable path > + test with payload check > """ > path_mode =3D "mergeable" > + qemu_path =3D "disable- > modern=3Dfalse,mrg_rxbuf=3Don,csum=3Don,guest_csum=3Don,host_tso4=3Don,gu= est_tso > 4=3Don,guest_ecn=3Don,packed=3Don" > extern_param =3D '--max-pkt-len=3D9600' > dump_port =3D 'port=3D0' > self.get_core_list(2) > self.start_vhost_testpmd() > - self.start_vms(mode=3D2, mergeable=3DTrue) > + self.start_vms(qemu_path=3Dqemu_path) > # git the vm enough huge to run pdump > self.vm_dut[0].set_huge_pages(2048) > # start testpmd and pdump in VM0 @@ -437,7 +433,7 @@ class > TestVM2VMVirtioPMD(TestCase): > # check the packet in vm0 > self.check_packet_payload_valid(self.vm_dut[0]) >=20 > - def > test_vhost_vm2vm_virtio_split_ring_with_mergeable_path_cbdma_enabled(self > ): > + def > test_vhost_vm2vm_virtio_split_ring_with_mergeable_path_cbdma_enable(self)= : > """ > Test Case 9: VM2VM virtio-pmd split ring mergeable path 8 queues= CBDMA > enable with server mode stable test > """ > @@ -445,8 +441,9 @@ class TestVM2VMVirtioPMD(TestCase): > self.get_core_list(self.nb_cores + 1) > self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=3D16, > queue_num=3D8, allow_diff_socket=3DTrue) > self.logger.info("Launch vhost-testpmd with CBDMA and used 8 que= ue") > - self.prepare_test_env(cbdma=3DTrue, no_pci=3DFalse, client_mode= =3DTrue, > enable_queues=3D8, nb_cores=3D4, > - server_mode=3DTrue, opt_queue=3D8, combine= d=3DTrue, rxq_txq=3D8) > + qemu_path =3D "disable- > modern=3Dfalse,mrg_rxbuf=3Don,mq=3Don,vectors=3D40,csum=3Don,guest_csum= =3Don,host > _tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host_ufo=3Don" > + self.prepare_test_env(cbdma=3DTrue, no_pci=3DFalse, client_mode= =3DTrue, > enable_queues=3D8, nb_cores=3D4, qemu_path=3Dqemu_path, > + server_mode=3DTrue, opt_queue=3D8, rxq_txq= =3D8) > self.logger.info("Launch testpmd in VM1") > self.start_vm_testpmd(self.vm_dut[0], "mergeable", extern_param= =3D"-- > max-pkt-len=3D9600", queues=3D"8") > self.vm_dut[0].send_expect('set fwd mac', 'testpmd> ', 30) @@ -4= 69,7 > +466,7 @@ class TestVM2VMVirtioPMD(TestCase): > self.check_port_stats_result(self.vm_dut[0], queue_num=3D8) > self.check_port_stats_result(self.vm_dut[1], queue_num=3D8) >=20 > - def > test_vhost_vm2vm_split_ring_with_mergeable_path_and_server_mode_cbdma > _enabled(self): > + def > test_vhost_vm2vm_split_ring_with_mergeable_path_and_server_mode_cbdma > _enable(self): > """ > Test Case 10: VM2VM virtio-pmd split ring mergeable path dynamic= queue > size CBDMA enable with server mode test > """ > @@ -477,8 +474,9 @@ class TestVM2VMVirtioPMD(TestCase): > self.get_core_list(self.nb_cores + 1) > self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=3D16, > queue_num=3D8, allow_diff_socket=3DTrue) > self.logger.info("Launch vhost-testpmd with CBDMA and used 8 que= ue") > - self.prepare_test_env(cbdma=3DTrue, no_pci=3DFalse, client_mode= =3DTrue, > enable_queues=3D8, nb_cores=3D4, > - server_mode=3DTrue, opt_queue=3D8, combine= d=3DTrue, rxq_txq=3D8) > + qemu_path =3D "disable- > modern=3Dfalse,mrg_rxbuf=3Don,mq=3Don,vectors=3D40,csum=3Don,guest_csum= =3Don,host > _tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host_ufo=3Don" > + self.prepare_test_env(cbdma=3DTrue, no_pci=3DFalse, client_mode= =3DTrue, > enable_queues=3D8, nb_cores=3D4, qemu_path=3Dqemu_path, > + server_mode=3DTrue, opt_queue=3D8, rxq_txq= =3D8) > self.logger.info("Launch testpmd in VM1") > self.start_vm_testpmd(self.vm_dut[0], "mergeable", extern_param= =3D"-- > max-pkt-len=3D9600", queues=3D"8") > self.vm_dut[0].send_expect('set fwd mac', 'testpmd> ', 30) @@ -5= 00,15 > +498,16 @@ class TestVM2VMVirtioPMD(TestCase): > self.check_port_stats_result(self.vm_dut[0], queue_num=3D8) > self.check_port_stats_result(self.vm_dut[1], queue_num=3D8) >=20 > - def > test_vhost_vm2vm_packed_ring_with_mergeable_path_and_8queues_cbdma_ > enabled(self): > + def > test_vhost_vm2vm_packed_ring_with_mergeable_path_and_8queues_cbdma_ > enable(self): > """ > Test Case 11: VM2VM virtio-pmd packed ring mergeable path 8 queu= es > CBDMA enable test > """ > self.nb_cores =3D 4 > self.get_core_list(self.nb_cores + 1) > self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=3D16, > queue_num=3D8, allow_diff_socket=3DTrue) > - self.prepare_test_env(cbdma=3DTrue, no_pci=3DFalse, client_mode= =3DFalse, > enable_queues=3D8, nb_cores=3D4, > - server_mode=3DFalse, opt_queue=3D8, combin= ed=3DTrue, rxq_txq=3D8, > mode=3D2) > + qemu_path =3D "disable- > modern=3Dfalse,mrg_rxbuf=3Don,mq=3Don,vectors=3D40,csum=3Don,guest_csum= =3Don,host > _tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host_ufo=3Don,pa= cked=3Don > " > + self.prepare_test_env(cbdma=3DTrue, no_pci=3DFalse, client_mode= =3DFalse, > enable_queues=3D8, nb_cores=3D4, qemu_path=3Dqemu_path, > + server_mode=3DFalse, opt_queue=3D8, > + rxq_txq=3D8) > self.logger.info("Launch testpmd in VM1") > self.start_vm_testpmd(self.vm_dut[0], "mergeable", extern_param= =3D"-- > max-pkt-len=3D9600", queues=3D"8") > self.logger.info("Launch testpmd in VM2 and send imix pkts") @@ = -616,14 > +615,14 @@ class TestVM2VMVirtioPMD(TestCase): > vm_dut.send_expect("clear port stats all", "testpmd> ", 30) > vm_dut.send_expect("start", "testpmd> ", 30) >=20 > - def prepare_test_env(self, cbdma=3DFalse, no_pci=3DTrue, client_mode= =3DFalse, > enable_queues=3D1, nb_cores=3D2, > - server_mode=3DFalse, opt_queue=3DNone, combined= =3DFalse, > rxq_txq=3DNone, iova_mode=3DFalse, vm_config=3D'vhost_sample', mode=3D1): > + def prepare_test_env(self, cbdma=3DFalse, no_pci=3DTrue, client_mode= =3DFalse, > enable_queues=3D1, nb_cores=3D2, qemu_path=3D'', > + server_mode=3DFalse, opt_queue=3DNone, rxq_txq= =3DNone, > iova_mode=3DFalse, vm_config=3D'vhost_sample'): > """ > start vhost testpmd and qemu, and config the vm env > """ > self.start_vhost_testpmd_cbdma(cbdma=3Dcbdma, no_pci=3Dno_pci, > client_mode=3Dclient_mode, enable_queues=3Denable_queues, > nb_cores=3Dnb_cores, rxq_txq=3Drxq_txq, > iova_mode=3Diova_mode) > - self.start_vms(server_mode=3Dserver_mode, opt_queue=3Dopt_queue, > mode=3Dmode, vm_config=3Dvm_config) > + self.start_vms(qemu_path=3Dqemu_path, server_mode=3Dserver_mode, > + opt_queue=3Dopt_queue, vm_config=3Dvm_config) >=20 > def start_vhost_testpmd_cbdma(self, cbdma=3DFalse, no_pci=3DTrue, > client_mode=3DFalse, enable_queues=3D1, nb_cores=3D2, rxq_txq=3DNone, > iova_mode=3DFalse): > """ > -- > 2.32.0