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 65E04A0547; Tue, 20 Apr 2021 05:08:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 30C2A4159C; Tue, 20 Apr 2021 05:08:31 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id CEDA741598 for ; Tue, 20 Apr 2021 05:08:28 +0200 (CEST) IronPort-SDR: 5I5e5bc2rbp0qCIkldQArVY/j76nOeYNjqiyJbdH6GWTefnECuogCLirgYE+5ShA8NY2bhei04 ESGC3Rm59tlQ== X-IronPort-AV: E=McAfee;i="6200,9189,9959"; a="256744226" X-IronPort-AV: E=Sophos;i="5.82,235,1613462400"; d="scan'208";a="256744226" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 20:08:25 -0700 IronPort-SDR: lKfu/MPfFyor4qwVDRU2BKF42JugOy4HbEpIUVds+7pDYlROhAhRvnXCYhgJe9w0VO3bpAJnKf a7CkTCn9Mvag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,235,1613462400"; d="scan'208";a="602330365" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga005.jf.intel.com with ESMTP; 19 Apr 2021 20:08:23 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 19 Apr 2021 20:08:23 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 19 Apr 2021 20:08:22 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Mon, 19 Apr 2021 20:08:22 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Mon, 19 Apr 2021 20:08:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l03APXa3KxjLz3PPl8pJELXwpCjbKOTHess0cLK2XYF63nkKQ5zelyopXFnz84g49984pT2zk2Bme4JZOEmP3k7SLSlZQ5reUp0lPKTNfkogFGSq1gyeKJslJW5Rf1ELonAYqHswOBhHm8aEgB5WJc5oVOjPnH1UcTKWMU02GvGLK+XGkj3zP2xZuSqsMDOflQhPEZmg4fXeWTEKNLV0I3bDUDQlNh8NnXB6SycXZJZNw+sl5/LPynInvx6tgSUqfebdN/7y4jvUxxu4TeLZz5UPig+Hswi7X2c5U79bIee3QCrSyIHibBPe230YHM/feeVGDAzy6FphxV5w8RZfxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dmmi7sfmeRw7vnO0P3L/DziIk14BMkX0KdM3cVTSHN0=; b=YDVXduAhWhhYV7mfTGc9CI6GtK50G+saayhhMTC0zLrmqZKWe1GvqIGqSkSiSyuB9erfHMnh95sll77SrBEMeKtjfZgImidLPhJNwZE2V1fbMg3L7RqdMnAByvTHT8clbDx1+lOuxBseXtbhzQrph46WamdPaJdj/Dysw24HrGoXQL45ZR/BKITxaHHaM/kcrMF1Kh7la0U11bfze/ZtZHsqApzqWDY8uicpws77VFoEwqzSL1HpU2X4K0PtiD2jMFUzI69zX+QgiAXWUGfwjOJ4aJmQ70gB8yFwIfqnOKRbRyzVIlqDjVjBHWMhmb/5FAYItUEz2z+9ycdAQeQm3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dmmi7sfmeRw7vnO0P3L/DziIk14BMkX0KdM3cVTSHN0=; b=xb4NXEM2MoD7iWr6iNG+XzYs7ZblUk/dJVAnANOCOxmj3F2QASqKdXBHuVl8vd9Pofq1iZSHgK1iBsacSS5CxEE1B7GuvCvhTThh4YjiVVH7FrGZUOwTMCHD+oiT+KP9vePluDSOC72X8bhCxo+tJcvNnKBEiPkR1tkjjXfzBNM= Received: from BYAPR11MB2648.namprd11.prod.outlook.com (2603:10b6:a02:c7::10) by BY5PR11MB3880.namprd11.prod.outlook.com (2603:10b6:a03:184::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Tue, 20 Apr 2021 03:08:20 +0000 Received: from BYAPR11MB2648.namprd11.prod.outlook.com ([fe80::f4a4:3591:faa3:9668]) by BYAPR11MB2648.namprd11.prod.outlook.com ([fe80::f4a4:3591:faa3:9668%3]) with mapi id 15.20.4042.024; Tue, 20 Apr 2021 03:08:20 +0000 From: "Wang, Yinan" To: "Ling, WeiX" , "dts@dpdk.org" CC: "Ling, WeiX" Thread-Topic: [dts] [PATCH V1] tests/perf_vm2vm_virtio_net_perf: delete 2 zero_copy testcase Thread-Index: AQHXMA9KuBNqL8DT1E+Tx7GRXO/WBKq8xKIw Date: Tue, 20 Apr 2021 03:08:20 +0000 Message-ID: References: <20210413024456.525859-1-weix.ling@intel.com> In-Reply-To: <20210413024456.525859-1-weix.ling@intel.com> Accept-Language: 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 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.53] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b16a4e82-520f-424d-13f5-08d903a98d31 x-ms-traffictypediagnostic: BY5PR11MB3880: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:883; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5A2XVM+eyKGB6zZyFHBZJhDXJdUo+Bk7CK9LnVskst3cPMPD8kWooV/VGKy191B/7xdvJt/DKiXsynqhdQmoUxjt4N9NO7SzjhN5TmVz6viFuFuW0e2UHPzNx4pe7ATyJbR7hb04haRKNv++3QKrDPyHq4Fb1Iep4DyxB9DnVlr1qcOnQX2UoXWi2pApM7sL0FaGcoMVojsa6bBatz5GIepw7ZgZa3cPlN7DvRjlSy6cy9AAI3lAiEUZeY0rFfpqZHifH5quYPg2qS/In9FLedlSeuegKHmaroJRNk3+ypWZ2GYKXNq04sMXcafy7a8oeJWn37uoRF1SkCIgXKIkI8caY+/ykZ0AM0iMz8LEDxzHoZnYhrUkkKOGBlMDT4xH9knDlvTCWJ+67QNtiwl2RNGwlzffOYe/0UVR1tk1n9Sx4QDLZMVT5z4t1ECNiRP2pE9aJxJBumUZO2/0zbeVpCnXXCWn5igANHGj7GoMH+gXMIjk6A0mjemxQWF3SEwgyRUk5JgSCnXbVGIBkpbj2CNERLJvgy9tSWtcN9u2U2uFF7g2aHzrLS0YvPKWzK3Q7VceEKcHLuqynGqGtkxjAWmnMPunclaVVJBya1rYcRg= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2648.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(396003)(346002)(366004)(39860400002)(376002)(26005)(71200400001)(83380400001)(7696005)(19627235002)(53546011)(6506007)(186003)(8936002)(110136005)(107886003)(8676002)(4326008)(9686003)(38100700002)(2906002)(478600001)(316002)(66446008)(30864003)(66946007)(76116006)(33656002)(5660300002)(66556008)(64756008)(86362001)(52536014)(66476007)(55016002)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?Windows-1252?Q?AFC1Sob/Ja7PZ//qdwTNE+r20nySO/T6Ucl41476CJyKBRsaNJUSQk3N?= =?Windows-1252?Q?Lw7AQkUzw0V43Yqux/GF/pry7vmsCSe2OYkRmatsjhFY4m+FH9CQCpCs?= =?Windows-1252?Q?tSkvGmW7ZGdBdEPZxWGFn8+yMurzvI/EJKe71RyyP2j/2fZo969/MYZ4?= =?Windows-1252?Q?vaCrCKS5TpLReWi7C80ssbS2VI2FqxSmINq3yo/L02E6Isi9yub3Jb2F?= =?Windows-1252?Q?E3iSkOcBJrSma7WBUIBm4DXE/CnCW8Xx5gG9Si0TvgepChPSvSojxzKK?= =?Windows-1252?Q?zUl3MsUdWZ01qHJJtJYUJwJHHdjsCvicSg8419M2VMXe5/FcMYKjTEXQ?= =?Windows-1252?Q?dhOloqRfyu3WzHiJhFDAbvXKcxuJKHsnrfRqvviW14qHvIGrBmPjZyJg?= =?Windows-1252?Q?ZJ3YeknXO4bmDLp5+qwQgztwjRfLYulHp2l0CJz2wRMLTjkNBKCuk6Px?= =?Windows-1252?Q?/nu/J2G7v8jsvo/Kcg7E4i7G/f9pkhsNBk1jygLvHy3JUI8ODHV7eK7o?= =?Windows-1252?Q?y+HQsyHpiHq0F4NZEwDEZYb/R4hMNrQzF80r+Uxa1KwbmlBPM07U7XTh?= =?Windows-1252?Q?2hNDKs3uUXHPE7cKKKJ+RLkmebZq3y7uyyz3VhcIF0YbIUlR3A2FoMyz?= =?Windows-1252?Q?8Jh9D7OdnBMEnrUnJf6evkrPkzWPC7CFElXNlfipoq61H8/jRsNF7epA?= =?Windows-1252?Q?nlGky3cXaWJ3X7AHNtucDJHUUeyfkf58vlGEdBsi4evB+6ycT74AVVWQ?= =?Windows-1252?Q?ROTYH8xkCqNEcsKZPfCF+XzopG/rXlN6fCVEjuT2qMySM3hQEpmjHukA?= =?Windows-1252?Q?xxA7EqbfVY2glCBnqTB0vWpj+sgFeVx6fF5Y+9Ar5j7l7GiZDNvQsYGS?= =?Windows-1252?Q?GvB1C0jk8xHHk2XLvYIACFfJJTgWij26vXEM9np2g0OAKBzlrKyhwVHR?= =?Windows-1252?Q?3laOKxaa9vPzFazPTuCQ2tsW3BAnD1fzrhgngWFCEkmEy1u/HPSQlI0a?= =?Windows-1252?Q?O9+p56sUu6T5FYYu66YSTUlTI5Ut9JV+6LMHbCSKHjj5ux4F/vyfxQbe?= =?Windows-1252?Q?LmmUdPqn/Mgz0t+EV92ROjQi/abSBvGHF/K3f01N3Ax5nqJXuFnJhquS?= =?Windows-1252?Q?FKV79Ir3C2sV7BQk+Fpx+G7vKYyN2i0mgML3ZKW2oVsBZ0VBpKPW1uOm?= =?Windows-1252?Q?gvpoGsxlOwOWBXzka1wJOiNNltkmeAxUYAQDhvWUdDJSp/Zl0kLKaBMe?= =?Windows-1252?Q?8mVCknzyrwxrkog4gMfV3gtrWuSnY3XJ/QKFihy/ih+MGckQoOkoE9J5?= =?Windows-1252?Q?XRmsJM0MvpQR7ixKixs21CUVsVWvlFLIL9C035o9rhhW4BDu0B+I7M78?= =?Windows-1252?Q?MDBklXkAP4nPoTBhTTcFuo1feey0Hk6DsBAhSAGwIXc3vM3vaxf5MXsA?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2648.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b16a4e82-520f-424d-13f5-08d903a98d31 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2021 03:08:20.1686 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PjxUuczLXX1yYjnT1Nk0o7CZOKa0oQOtFTBT2/tuedjM/f48xpzqvmLIk/ze6mhmHg3MweOKhPv7MVVMsyjecA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB3880 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1] tests/perf_vm2vm_virtio_net_perf: delete 2 zero_copy testcase 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" Acked-by: Wang, Yinan > -----Original Message----- > From: dts On Behalf Of Ling Wei > Sent: 2021?4?13? 10:45 > To: dts@dpdk.org > Cc: Ling, WeiX > Subject: [dts] [PATCH V1] tests/perf_vm2vm_virtio_net_perf: delete 2 > zero_copy testcase >=20 > As DPDK community has removed support dequeue zero copy feature in > 20.11,so delete zero_copy case in testcase and testplan. >=20 > Signed-off-by: Ling Wei > --- > .../perf_vm2vm_virtio_net_perf_test_plan.rst | 103 +----------------- > tests/TestSuite_perf_vm2vm_virtio_net_perf.py | 47 ++------ > 2 files changed, 8 insertions(+), 142 deletions(-) >=20 > diff --git a/test_plans/perf_vm2vm_virtio_net_perf_test_plan.rst > b/test_plans/perf_vm2vm_virtio_net_perf_test_plan.rst > index 60e7abd0..c284c0f3 100644 > --- a/test_plans/perf_vm2vm_virtio_net_perf_test_plan.rst > +++ b/test_plans/perf_vm2vm_virtio_net_perf_test_plan.rst > @@ -97,58 +97,8 @@ Test Case 1: Perf VM2VM split ring vhost-user/virtio- > net test with tcp traffic >=20 > 6. Check iperf throughput can get expected data. >=20 > -Test Case 2: Perf VM2VM split ring vhost-user/virtio-net dequeue zero-co= py > test with tcp traffic > - > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -1. Launch the Vhost sample by below commands:: > - > - rm -rf vhost-net* > - ./testpmd -l 2-4 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' \ > - --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- - > i --nb-cores=3D2 --txd=3D1024 --rxd=3D1024 > - testpmd>start > - > -2. Launch VM1 and VM2:: > - > - taskset -c 13 qemu-system-x86_64 -name vm1 -enable-kvm -cpu host - > smp 1 -m 4096 \ > - -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > - -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > - -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > - -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > - -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > - -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don -vnc :10 > - > - taskset -c 15 qemu-system-x86_64 -name vm2 -enable-kvm -cpu host - > smp 1 -m 4096 \ > - -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > - -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > - -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > - -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > - -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > - -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don -vnc :12 > - > -3. On VM1, set virtio device IP and run arp protocal:: > - > - ifconfig ens5 1.1.1.2 > - arp -s 1.1.1.8 52:54:00:00:00:02 > - > -4. On VM2, set virtio device IP and run arp protocal:: > - > - ifconfig ens5 1.1.1.8 > - arp -s 1.1.1.2 52:54:00:00:00:01 > - > -5. Check the iperf performance between two VMs by below commands:: > - > - Under VM1, run: `iperf -s -i 1` > - Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60` > - > -6. Check iperf throughput can get expected data. > - > -Test Case 3: Perf VM2VM packed ring vhost-user/virtio-net test with tcp > traffic > +Test Case 2: Perf VM2VM packed ring vhost-user/virtio-net test with tcp > traffic >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > 1. Launch the Vhost sample by below commands:: > @@ -198,54 +148,3 @@ Test Case 3: Perf VM2VM packed ring vhost- > user/virtio-net test with tcp traffic > Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60` >=20 > 6. Check iperf throughput can get expected data. > - > -Test Case 4: Perf VM2VM packed ring vhost-user/virtio-net dequeue zero- > copy test with tcp traffic > - > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - > -1. Launch the Vhost sample by below commands:: > - > - rm -rf vhost-net* > - ./testpmd -l 2-4 -n 4 --no-pci --file-prefix=3Dvhost --vdev > 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' \ > - --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy= =3D1' -- - > i --nb-cores=3D2 --txd=3D1024 --rxd=3D1024 > - testpmd>start > - > -2. Launch VM1 and VM2:: > - > - taskset -c 13 qemu-system-x86_64 -name vm1 -enable-kvm -cpu host - > smp 1 -m 4096 \ > - -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > - -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16.img \ > - -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > - -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > - -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6002-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net0 \ > - -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 10 > - > - taskset -c 15 qemu-system-x86_64 -name vm2 -enable-kvm -cpu host - > smp 1 -m 4096 \ > - -object memory-backend-file,id=3Dmem,size=3D4096M,mem- > path=3D/mnt/huge,share=3Don \ > - -numa node,memdev=3Dmem -mem-prealloc -drive > file=3D/home/osimg/ubuntu16-2.img \ > - -chardev socket,path=3D/tmp/vm2_qga0.sock,server,nowait,id=3Dvm2_qga= 0 - > device virtio-serial \ > - -device virtserialport,chardev=3Dvm2_qga0,name=3Dorg.qemu.guest_agen= t.2 > -daemonize \ > - -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device > e1000,netdev=3Dnttsip1 \ > - -netdev user,id=3Dnttsip1,hostfwd=3Dtcp:127.0.0.1:6003-:22 \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net1 \ > - -netdev type=3Dvhost-user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:02,mrg_rxbuf=3Don,csum=3Don,gue= st_c > sum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don -vnc := 12 > - > -3. On VM1, set virtio device IP and run arp protocal:: > - > - ifconfig ens3 1.1.1.2 > - arp -s 1.1.1.8 52:54:00:00:00:02 > - > -4. On VM2, set virtio device IP and run arp protocal:: > - > - ifconfig ens3 1.1.1.8 > - arp -s 1.1.1.2 52:54:00:00:00:01 > - > -5. Check the iperf performance between two VMs by below commands:: > - > - Under VM1, run: `iperf -s -i 1` > - Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 60` > - > -6. Check iperf throughput can get expected data. > \ No newline at end of file > diff --git a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py > b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py > index 7116eece..ac0e38a2 100644 > --- a/tests/TestSuite_perf_vm2vm_virtio_net_perf.py > +++ b/tests/TestSuite_perf_vm2vm_virtio_net_perf.py > @@ -164,16 +164,12 @@ class TestPerfVM2VMVirtioNetPerf(TestCase): >=20 > self.verify("FAIL" not in status_result, "Exceeded Gap") >=20 > - def start_vhost_testpmd(self, zerocopy=3DFalse): > + def start_vhost_testpmd(self): > """ > launch the testpmd with different parameters > """ > - if zerocopy is True: > - zerocopy_arg =3D ",dequeue-zero-copy=3D1" > - else: > - zerocopy_arg =3D "" > - vdev1 =3D "--vdev 'net_vhost0,iface=3D%s/vhost-net0,queues=3D1%s= ' " % > (self.base_dir, zerocopy_arg) > - vdev2 =3D "--vdev 'net_vhost1,iface=3D%s/vhost-net1,queues=3D1%s= ' " % > (self.base_dir, zerocopy_arg) > + vdev1 =3D "--vdev 'net_vhost0,iface=3D%s/vhost-net0,queues=3D1' = " % > self.base_dir > + vdev2 =3D "--vdev 'net_vhost1,iface=3D%s/vhost-net1,queues=3D1' = " % > self.base_dir > eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= _list, > prefix=3D'vhost', no_pci=3DTrue) > para =3D " -- -i --nb-cores=3D2 --txd=3D1024 --rxd=3D1024" > self.command_line =3D self.path + eal_params + vdev1 + vdev2 + p= ara > @@ -227,11 +223,11 @@ class TestPerfVM2VMVirtioNetPerf(TestCase): > self.vm_dut[0].send_expect("arp -s %s %s" % (self.virtio_ip2, > self.virtio_mac2), "#", 10) > self.vm_dut[1].send_expect("arp -s %s %s" % (self.virtio_ip1, > self.virtio_mac1), "#", 10) >=20 > - def prepare_test_env(self, zerocopy, path_mode, packed_mode=3DFalse)= : > + def prepare_test_env(self, path_mode, packed_mode=3DFalse): > """ > start vhost testpmd and qemu, and config the vm env > """ > - self.start_vhost_testpmd(zerocopy) > + self.start_vhost_testpmd() > self.start_vms(mode=3Dpath_mode, packed=3Dpacked_mode) > self.config_vm_env() >=20 > @@ -310,24 +306,10 @@ class TestPerfVM2VMVirtioNetPerf(TestCase): > """ > VM2VM split ring vhost-user/virtio-net test with tcp traffic > """ > - zerocopy =3D False > path_mode =3D "tso" > self.test_target =3D "split_tso" > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > - self.prepare_test_env(zerocopy, path_mode) > - self.start_iperf_and_verify_vhost_xstats_info(mode=3D"tso") > - self.handle_expected() > - self.handle_results() > - > - def test_vm2vm_split_ring_dequeue_zero_copy_iperf_with_tso(self): > - """ > - VM2VM split ring vhost-user/virtio-net zero copy test with tcp t= raffic > - """ > - zerocopy =3D True > - path_mode =3D "tso" > - self.test_target =3D "split_zero_copy_tso" > - self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > - self.prepare_test_env(zerocopy, path_mode) > + self.prepare_test_env(path_mode) > self.start_iperf_and_verify_vhost_xstats_info(mode=3D"tso") > self.handle_expected() > self.handle_results() > @@ -336,26 +318,11 @@ class TestPerfVM2VMVirtioNetPerf(TestCase): > """ > VM2VM packed ring vhost-user/virtio-net test with tcp traffic > """ > - zerocopy =3D False > path_mode =3D "tso" > self.test_target =3D "packed_tso" > self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > packed_mode =3D True > - self.prepare_test_env(zerocopy, path_mode, packed_mode) > - self.start_iperf_and_verify_vhost_xstats_info(mode=3D"tso") > - self.handle_expected() > - self.handle_results() > - > - def test_vm2vm_packed_ring_dequeue_zero_copy_iperf_with_tso(self): > - """ > - VM2VM packed ring vhost-user/virtio-net zero copy test with tcp > traffic > - """ > - zerocopy =3D True > - path_mode =3D "tso" > - packed_mode =3D True > - self.test_target =3D "packed_zero_copy_tso" > - self.expected_throughput =3D > self.get_suite_cfg()['expected_throughput'][self.test_target] > - self.prepare_test_env(zerocopy, path_mode, packed_mode) > + self.prepare_test_env(path_mode, packed_mode) > self.start_iperf_and_verify_vhost_xstats_info(mode=3D"tso") > self.handle_expected() > self.handle_results() > -- > 2.25.1