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 90EBD42CC4; Thu, 15 Jun 2023 10:54:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CB0740DDA; Thu, 15 Jun 2023 10:54:27 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 19E1340A84 for ; Thu, 15 Jun 2023 10:54:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686819266; x=1718355266; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lSqlX8kg3rj9ZODx10RVtAln6Aq5DHVJJcQX/brAkkg=; b=k8CdHvS0GfmuIgTGa/QTqTRkzuKF5AJLSpz7yPUT7az5uI0e/rYzSKYN y0VaWbIOkH8U7q/bYT05Ux+GoNPEQEp2TjOSwy2BRbVXlWjWy5ft9Lp10 j4TgaV/5omJCotcDkLym/Jzeln9daO/XbRxXkG/7W7XEG+JAXxchFC+zQ WVJDLV5VSeXV82sNcJvLx2d22A3rPZsnJw4wXB7W85llEyfPUnpg5KV1M d9a3I6U61xY0WI8zU8bSnEytjqhdEtixjRai5w9Co+pKahgp2Y3v/rB9e /A82Vcd2bMzZ1pWyKMD8CrORQMQNA4XdiNjvMSOd+17eohIA+jQ57c97Y g==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="445224223" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="445224223" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 01:54:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="886577167" X-IronPort-AV: E=Sophos;i="6.00,244,1681196400"; d="scan'208";a="886577167" Received: from unknown (HELO dut222..) ([10.239.252.222]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 01:54:22 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1] vm2vm_virtio_net_perf_dsa: modify start vhost-user back-end queues Date: Thu, 15 Jun 2023 16:54:12 +0800 Message-Id: <20230615085412.1122975-1-weix.ling@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 1.As DPDK commit b82f55c0(net/vhost: use API to set max queue pairs), need use the same queues number on vhose-user back-end side as front-end side, so modify the testplan and testsuite. 2.Remove 'tso=1' parameter in testsuite case3 and case11 sync with testplan. Signed-off-by: Wei Ling --- .../vm2vm_virtio_net_perf_dsa_test_plan.rst | 60 ++++++---- tests/TestSuite_vm2vm_virtio_net_perf_dsa.py | 106 +++++++++--------- 2 files changed, 93 insertions(+), 73 deletions(-) diff --git a/test_plans/vm2vm_virtio_net_perf_dsa_test_plan.rst b/test_plans/vm2vm_virtio_net_perf_dsa_test_plan.rst index 0e742387..a6efbf69 100644 --- a/test_plans/vm2vm_virtio_net_perf_dsa_test_plan.rst +++ b/test_plans/vm2vm_virtio_net_perf_dsa_test_plan.rst @@ -264,8 +264,10 @@ The dynamic change of multi-queues number, iova as VA and PA mode also test. 12. Quit vhost ports and relaunch vhost ports w/o dsa channels:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --no-pci --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=8' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=8' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=4 --txq=4 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --no-pci \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=8' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=8' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=4 --txq=4 testpmd>start 13. On VM1, set virtio device:: @@ -280,8 +282,10 @@ The dynamic change of multi-queues number, iova as VA and PA mode also test. 16. Quit vhost ports and relaunch vhost ports with 1 queues:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --no-pci --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=4' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=4' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --no-pci \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=8' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=8' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 testpmd>start 17. On VM1, set virtio device:: @@ -359,16 +363,20 @@ The dynamic change of multi-queues number also test. 8. Quit vhost ports and relaunch vhost ports w/o dsa channels:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --no-pci --vdev 'net_vhost0,iface=vhost-net0,client=1,queues=8' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,queues=8' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=8 --txq=8 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --no-pci \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,queues=8' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,queues=8' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=8 --txq=8 testpmd>start 9. Rerun step 6-7. 10. Quit vhost ports and relaunch vhost ports with 1 queues:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --no-pci --vdev 'net_vhost0,iface=vhost-net0,client=1,queues=8' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,queues=8' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --no-pci \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,queues=8' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,queues=8' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 testpmd>start 11. On VM1, set virtio device:: @@ -840,8 +848,10 @@ The dynamic change of multi-queues number also test. 10. Quit vhost ports and relaunch vhost ports w/o dsa channels:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=8' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=8' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=4 --txq=4 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=8' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=8' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=4 --txq=4 testpmd>start 11. On VM1, set virtio device:: @@ -856,8 +866,10 @@ The dynamic change of multi-queues number also test. 14. Quit vhost ports and relaunch vhost ports with 1 queues:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=4' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=4' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=8' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=8' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 testpmd>start 15. On VM1, set virtio device:: @@ -940,16 +952,20 @@ The dynamic change of multi-queues number also test. 8. Quit vhost ports and relaunch vhost ports w/o dsa channels:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net0,client=1,queues=8,legacy-ol-flags=1' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,queues=8,legacy-ol-flags=1' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=8 --txq=8 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,queues=8,legacy-ol-flags=1' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,queues=8,legacy-ol-flags=1' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=8 --txq=8 testpmd>start 9. Rerun step 6-7. 10. Quit vhost ports and relaunch vhost ports with 1 queues:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net0,client=1,queues=8' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,queues=8' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,queues=8' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,queues=8' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 testpmd>start 11. On VM1, set virtio device:: @@ -1254,8 +1270,10 @@ and kernel driver and perform SW checksum in Rx/Tx path.. The dynamic change of 10. Quit vhost ports and relaunch vhost ports w/o dsa channels:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=16' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=16' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=16 --txq=16 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=16' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=16' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=16 --txq=16 testpmd>set fwd csum testpmd>start @@ -1263,8 +1281,10 @@ and kernel driver and perform SW checksum in Rx/Tx path.. The dynamic change of 12. Quit vhost ports and relaunch vhost ports with 1 queues:: - # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=8' \ - --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=8' -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 + # ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 --file-prefix=vhost \ + --vdev 'net_vhost0,iface=vhost-net0,client=1,tso=1,queues=16' \ + --vdev 'net_vhost1,iface=vhost-net1,client=1,tso=1,queues=16' \ + -- -i --nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1 testpmd>set fwd csum testpmd>start diff --git a/tests/TestSuite_vm2vm_virtio_net_perf_dsa.py b/tests/TestSuite_vm2vm_virtio_net_perf_dsa.py index b4d55fac..6ab1aff9 100644 --- a/tests/TestSuite_vm2vm_virtio_net_perf_dsa.py +++ b/tests/TestSuite_vm2vm_virtio_net_perf_dsa.py @@ -79,7 +79,7 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ) self.vhost_user_pmd.execute_cmd("start") - def start_vms(self, server_mode=False, vm_queue=1, vm_config="vhost_sample"): + def start_vms(self, server_mode=False, queues=1, vm_config="vhost_sample"): """ start two VM, each VM has one virtio device """ @@ -92,10 +92,11 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): vm_params["opt_path"] = self.base_dir + "/vhost-net%d" % i else: vm_params["opt_path"] = self.base_dir + "/vhost-net%d" % i + ",server" - if vm_queue > 1: - vm_params["opt_queue"] = vm_queue + if queues > 1: + vm_params["opt_queue"] = queues + mq_param = ",mq=on,vectors=%s" % (2 + 2 * queues) if queues > 1 else "" vm_params["opt_mac"] = "52:54:00:00:00:0%d" % (i + 1) - vm_params["opt_settings"] = self.vm_args + vm_params["opt_settings"] = self.vm_args + mq_param vm_info.set_vm_device(**vm_params) try: vm_dut = vm_info.start(set_target=False) @@ -148,7 +149,7 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): port_options=port_options, ) self.vm_args = "disable-modern=false,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" - self.start_vms(server_mode=False, vm_queue=1) + self.start_vms(server_mode=False, queues=1) self.BC.config_2_vms_ip() self.BC.check_scp_file_between_2_vms() self.BC.run_iperf_test_between_2_vms() @@ -212,8 +213,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ports=dsas[0:1], port_options=port_options, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=on,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" - self.start_vms(server_mode=True, vm_queue=8) + self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" + self.start_vms(server_mode=True, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -334,8 +335,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.vhost_user_pmd.quit() vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=4,tso=1' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=4,tso=1'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,tso=1' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,tso=1'" ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1" self.start_vhost_testpmd( @@ -395,8 +396,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ) port_options = {dsas[0]: "max_queues=8"} vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,tso=1,dmas=[%s]' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,tso=1,dmas=[%s]'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,dmas=[%s]' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,dmas=[%s]'" % (dmas, dmas) ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=8 --txq=8" @@ -407,8 +408,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ports=dsas[0:1], port_options=port_options, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=off,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" - self.start_vms(server_mode=True, vm_queue=8) + self.vm_args = "disable-modern=false,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" + self.start_vms(server_mode=True, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -418,8 +419,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.vhost_user_pmd.quit() vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,tso=1' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,tso=1'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8'" ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=4 --txq=4" self.start_vhost_testpmd( @@ -437,8 +438,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.vhost_user_pmd.quit() vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=4,tso=1' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=4,tso=1'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8'" ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1" self.start_vhost_testpmd( @@ -477,7 +478,7 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): port_options=port_options, ) self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,packed=on" - self.start_vms(server_mode=False, vm_queue=1) + self.start_vms(server_mode=False, queues=1) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() self.BC.check_scp_file_between_2_vms() @@ -542,8 +543,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ports=dsas[0:1], port_options=port_options, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=on,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" - self.start_vms(server_mode=False, vm_queue=8) + self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" + self.start_vms(server_mode=False, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -637,8 +638,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ports=dsas, port_options=port_options, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=off,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=off,guest_tso4=off,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" - self.start_vms(server_mode=False, vm_queue=8) + self.vm_args = "disable-modern=false,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=off,guest_tso4=off,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" + self.start_vms(server_mode=False, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -676,7 +677,7 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): port_options=port_options, ) self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,packed=on" - self.start_vms(server_mode=False, vm_queue=1) + self.start_vms(server_mode=False, queues=1) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() self.BC.check_scp_file_between_2_vms() @@ -741,8 +742,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ports=dsas[0:1], port_options=port_options, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=on,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" - self.start_vms(server_mode=False, vm_queue=8) + self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" + self.start_vms(server_mode=False, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -774,8 +775,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): param=vhost_param, no_pci=True, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=off,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" - self.start_vms(server_mode=False, vm_queue=1) + self.vm_args = "disable-modern=false,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" + self.start_vms(server_mode=False, queues=1) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() self.BC.check_scp_file_between_2_vms() @@ -870,8 +871,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): param=vhost_param, no_pci=True, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=on,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" - self.start_vms(server_mode=True, vm_queue=8) + self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" + self.start_vms(server_mode=True, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -973,8 +974,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.vhost_user_pmd.quit() vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=4,tso=1' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=4,tso=1'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,tso=1' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,tso=1'" ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1" self.start_vhost_testpmd( @@ -1054,8 +1055,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ) ) vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,tso=1,dmas=[%s]' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,tso=1,dmas=[%s]'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,dmas=[%s]' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,dmas=[%s]'" % (dmas1, dmas2) ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=8 --txq=8" @@ -1065,8 +1066,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): param=vhost_param, no_pci=True, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=off,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=off,guest_tso4=off,guest_ecn=on,guest_ufo=on,host_ufo=on" - self.start_vms(server_mode=True, vm_queue=8) + self.vm_args = "disable-modern=false,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=off,guest_tso4=off,guest_ecn=on,guest_ufo=on,host_ufo=on" + self.start_vms(server_mode=True, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -1076,8 +1077,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.vhost_user_pmd.quit() vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,tso=1,legacy-ol-flags=1' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,tso=1,legacy-ol-flags=1'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,legacy-ol-flags=1' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,legacy-ol-flags=1'" ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=8 --txq=8" self.start_vhost_testpmd( @@ -1092,8 +1093,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.BC.check_iperf_result_between_2_vms() self.vhost_user_pmd.quit() vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=4,tso=1' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=4,tso=1'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8'" ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1" self.start_vhost_testpmd( @@ -1128,7 +1129,7 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): no_pci=True, ) self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,packed=on" - self.start_vms(server_mode=False, vm_queue=1) + self.start_vms(server_mode=False, queues=1) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() self.BC.check_scp_file_between_2_vms() @@ -1198,9 +1199,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): ) ) vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,queues=8,tso=1,dmas=[%s]' " - "--vdev 'eth_vhost1,iface=vhost-net1,queues=8,tso=1,dmas=[%s]'" - % (dmas1, dmas2) + "--vdev 'eth_vhost0,iface=vhost-net0,queues=8,dmas=[%s]' " + "--vdev 'eth_vhost1,iface=vhost-net1,queues=8,dmas=[%s]'" % (dmas1, dmas2) ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=8 --txq=8" self.start_vhost_testpmd( @@ -1209,8 +1209,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): param=vhost_param, no_pci=True, ) - self.vm_args = "mrg_rxbuf=on,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" - self.start_vms(server_mode=False, vm_queue=8) + self.vm_args = "mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" + self.start_vms(server_mode=False, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -1315,8 +1315,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): param=vhost_param, no_pci=True, ) - self.vm_args = "disable-modern=false,mrg_rxbuf=off,mq=on,vectors=40,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" - self.start_vms(server_mode=False, vm_queue=8) + self.vm_args = "disable-modern=false,mrg_rxbuf=off,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" + self.start_vms(server_mode=False, queues=8) self.BC.config_2_vms_combined(combined=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -1499,8 +1499,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.vhost_user_pmd.execute_cmd("port config 1 tx_offload tcp_cksum on") self.vhost_user_pmd.execute_cmd("port start all") self.vhost_user_pmd.execute_cmd("start") - self.vm_args = "disable-modern=false,mrg_rxbuf=off,mq=on,vectors=40,csum=on,guest_csum=off,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" - self.start_vms(server_mode=True, vm_queue=16) + self.vm_args = "disable-modern=false,mrg_rxbuf=off,csum=on,guest_csum=off,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on" + self.start_vms(server_mode=True, queues=16) self.BC.config_2_vms_combined(combined=16) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() @@ -1593,8 +1593,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.vhost_user_pmd.quit() vhost_eal_param = ( - "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=8,tso=1' " - "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=8,tso=1'" + "--vdev 'eth_vhost0,iface=vhost-net0,client=1,queues=16,tso=1' " + "--vdev 'eth_vhost1,iface=vhost-net1,client=1,queues=16,tso=1'" ) vhost_param = "--nb-cores=4 --txd=1024 --rxd=1024 --rxq=1 --txq=1" self.start_vhost_testpmd( @@ -1778,8 +1778,8 @@ class TestVM2VMVirtioNetPerfDsa(TestCase): self.vhost_user_pmd.execute_cmd("port config 1 tx_offload tcp_cksum on") self.vhost_user_pmd.execute_cmd("port start all") self.vhost_user_pmd.execute_cmd("start") - self.vm_args = "disable-modern=false,mrg_rxbuf=on,mq=on,vectors=40,csum=on,guest_csum=off,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" - self.start_vms(server_mode=False, vm_queue=16) + self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=off,host_tso4=on,guest_tso4=on,guest_ecn=on,guest_ufo=on,host_ufo=on,packed=on" + self.start_vms(server_mode=False, queues=16) self.BC.config_2_vms_combined(combined=16) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() -- 2.34.1