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 968B8A0C43; Thu, 5 Aug 2021 02:38:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E2A54014F; Thu, 5 Aug 2021 02:38:00 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 810C040143 for ; Thu, 5 Aug 2021 02:37:58 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10066"; a="299630855" X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="299630855" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2021 17:37:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,296,1620716400"; d="scan'208";a="569213149" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga004.jf.intel.com with ESMTP; 04 Aug 2021 17:37:56 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 4 Aug 2021 17:37:56 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Wed, 4 Aug 2021 17:37:56 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Wed, 4 Aug 2021 17:37:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=biV2wAnFEEypBQ0ZjkwUtNlGAN9KUxD8vGunNLt7mKnEG9PHjvCYdKThO961qKTeQbXofqZJt8jNgb4nmfsTsjBQfM5ABYX+xICTHtk8HgbCjAuZTraDykh0Qpav/q/mR3fC/JMIWYyWrZBnH5iWyKdIKBFNvxARXv2kM0VNEBfQ1De/OteA0dFLxwCloQTvGei5Jjigr5guTZ/wg/q1m6/AfXt5btGnHk4LXDBGCYJSm1y8UMMrvr/KmGjd22yZCKrlVwuwaP2tnav1TGl0cJk3ywvRijcib1p+wdNAtyp9f20DROAYhaWceAQq70PVb72kX2pSsjOaxmDeJM3j+g== 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=UmMsg1sUWi3MVNITzRoP81wXx21ZjLZ/aNEdSmPDrvE=; b=jETNABbOJtInEapROfPEvCL6pe6wtMKdhXsCl19TJjKYNtGEysAuGzPUs0/85he0/6KA+Pf1W8w8VaK8ePahu7f40qfxm5o7op0PGuAusYI03poFIPO7AsR9+P8GzAvTCoaiAAqSMZhECtZkixICzqvyc+LrvjCisjDIN/WrARz+28/Ah40fbpbt6BXv2n7AolXff0qrBcP1eS+6CDJVZwv0NzJUo25UBKjdfGwAccUnpn4jCNl1sIJeDqqA+SgetXLyvYkSTP9sirUrxE6BFzNHBTdAZlhFSyJ1ypby7lz7bLNpa+O9rSBSAvdtZskn1ceKhi9RIjukG+0e6lNl4A== 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=UmMsg1sUWi3MVNITzRoP81wXx21ZjLZ/aNEdSmPDrvE=; b=rX5PuayXmgBuACV8WkHDk8HxePinqGj2bH3zuotSeZVr2Vl9lhQeIoj6P5u0vt/tfZu2m65Q5bwZYiZWDXrTq4GBuhLHIZbl4hfE4yBVtRRhd9rh8NklozJ3GPSOxkociWE4XdMuubqGs46iYwT8PUHfy5f0G0SiJrGj1Td14d8= Received: from BYAPR11MB2648.namprd11.prod.outlook.com (2603:10b6:a02:c7::10) by BY5PR11MB4021.namprd11.prod.outlook.com (2603:10b6:a03:191::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Thu, 5 Aug 2021 00:37:46 +0000 Received: from BYAPR11MB2648.namprd11.prod.outlook.com ([fe80::f8e4:c512:756d:b265]) by BYAPR11MB2648.namprd11.prod.outlook.com ([fe80::f8e4:c512:756d:b265%7]) with mapi id 15.20.4394.017; Thu, 5 Aug 2021 00:37:46 +0000 From: "Wang, Yinan" To: "Tu, Lijuan" , "Chen, LingliX" , "dts@dpdk.org" CC: "Chen, LingliX" Thread-Topic: [dts] [PATCH V2] tests/vm2vm_virtio_pmd: fix script issues Thread-Index: AQHXhCE5oGir6+urDEel7MoGaRxF/6thS1IAgALQBEA= Date: Thu, 5 Aug 2021 00:37:46 +0000 Message-ID: References: <20210729102738.87558-1-linglix.chen@intel.com> In-Reply-To: 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-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 349fcacc-633f-4a86-3432-08d957a93eec x-ms-traffictypediagnostic: BY5PR11MB4021: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1417; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: khOYeT9dl3yjxwtizHSCmfNDl9lsw+Ii4sVo5BYlz70J8AhLZOvb9motBiNj1s4CKWsWZlE+SXrM0UxDTvkxB2JGuOak60iGfDz5SyQFC9FMtXk/rhtRMkTgpQ8+louloJ6tjSaUsFZBTSJTd2kSSF+Sqe9pk6dGIs3f3EG4QiH0zmYiN30CyWNtNIvmHTrlVCJ5eHIe2Bl8V12esE7ho7lVW/RUeCzf3zaellTr0bsShtB0d7IZr45Y6cZbSN6y9h49JSXfGPTrMVmaJDVqwCDrEluVWZx0WHbe2f0W9bcug8K7qaiFe929Enw2g+rPAZLsQGsQo1i0eE1CUqwAjNqIKWWuUoXpgrPbwff4Mfe0Wk7hTkJHsbSc/L3FiHPsp9LEWEucai2Y5XwfwkjrGYdb/tl+DJYECLptbJo810DYvKZ5hZ0oDRVpcElB+tDQyvKvoPyO1V3WHCvWjiWvpD/iT+BjU5dAZn8C/dL98DcgNJ9JX49jYPbVbxzMARjSHoPLnsesPAN21fqroKvf/gmmU8bR2vucZgP008rgOx9Nbz5JFdGitHqO7+BrmanW5aYAghkaV2YcCiFzKq0uuEMQCU1NPIvJdoDU+JONqruQKPNYX4YRZDE725bj9N0BuDQ7XaAeMmllFv8Egcaf/NKyEGdD7PprkrdasOmrxjJ/Mq9BSNXBWZ0biLMWitgfCbYJSW3MZb20RjTCMBowkg== 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:(4636009)(346002)(39860400002)(376002)(396003)(136003)(366004)(316002)(53546011)(2906002)(9686003)(71200400001)(5660300002)(30864003)(110136005)(8676002)(19627235002)(8936002)(86362001)(186003)(4326008)(76116006)(83380400001)(55016002)(6506007)(64756008)(478600001)(107886003)(26005)(52536014)(7696005)(66446008)(33656002)(66946007)(38070700005)(66476007)(66556008)(38100700002)(122000001)(579004); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?U29yYTBwSWNzcmcxay9JZWhBREthNmY2KzJxb2RNR0dzeE43SjYzRS9i?= =?iso-2022-jp?B?cVFqdWdDSVBiZDV3RXpaRjhkOVpYNWZLMllMU0MwQ1RNMnAyK3V2NnQ0?= =?iso-2022-jp?B?UkEyMUxNbzZDNnJDUkVPMGsxbmRseGp0NWNVQnhWOUtWU0ltMXZLS0Vl?= =?iso-2022-jp?B?Vnp5OFozZ3YzT0VwYlRDcTRzT05tT2N0T3FKeEZ4K1pMaEdBVzJQMkFS?= =?iso-2022-jp?B?WVVlZDRtRmxwQTIzWlNIdHJlVnNHL2d6UjBQVVlLeFE1RnN3bXZ5ZTVZ?= =?iso-2022-jp?B?bldodHdSNDlUSmVNdEFTNEdFblJrYUlBZ1dlL3BqQy9HejdtYVY3aTFU?= =?iso-2022-jp?B?NXpGY09icEpHekZURkNYaGF5amVINXdoeEtBU0dhVmlVcVBBRTR0dlZB?= =?iso-2022-jp?B?alV4cERpUHQra2hzanVzV1FMMWVmUVZ4eEZhVWxZbUMxMi83ek00TGZP?= =?iso-2022-jp?B?eG9ralExTEh5cFI2bDdNOUUwNnBuVW9DTVFlREVLcnQramFjd3UvWE04?= =?iso-2022-jp?B?aFNaeGJQdjZQMTV4UHdET2htcjNBKy9UWlBPNDBrUHFmQWxvV0h4aFJN?= =?iso-2022-jp?B?UXdrT3k4Z2xuVjBleHVVVjREME05VHA4YWhZYmxyazdkaEw3Z3hnamhR?= =?iso-2022-jp?B?eW1JVzhSOEgzM2FuT04rVnMyMXN2TUVON2M2YXNlOUlEMU1Ubjk2TSs5?= =?iso-2022-jp?B?eVBlakJ5NDQwTk9LWjRZYmhiY2x1c0c0YnJ3VFRwY2RRQ3l0OUJzSWxJ?= =?iso-2022-jp?B?V1NGZEpMZlV3aGR5NDBRcDBFK1lBZWRoVG42OG1oNk80NGhpV1NwcnhI?= =?iso-2022-jp?B?eVp0RnRKSmhldTdISEZOcmVUU04vVTFuTE9sUXQ3S3c4NDV5VGF4Yjlo?= =?iso-2022-jp?B?dnZwenBVbGU1WFFzdUlDSzJ2UjFqNm85MVRtOUlad1pBbHl4RFRRRE1Z?= =?iso-2022-jp?B?bngwSktialRab2xhYTlqN0s5bjlPd3RhRmh4blQ1L3RxV1gyNGtSczRS?= =?iso-2022-jp?B?UEVqenVISHd4NXZYUitVMEVDb2FsZTRkelVQOXdOVlZZREVpUWxkWC9G?= =?iso-2022-jp?B?WHpGbmRRVXpKSmV0QWd1LzhIZitjY2YyS3lkeHF3bTlHSUh4RWt5OEdN?= =?iso-2022-jp?B?dm9GQlYyUGFhSGpVMUdZSVJjS0QvYUIvS01KK3J6eHNaZEFxRVNoUEpJ?= =?iso-2022-jp?B?dVg2RFdQdUpWTkpSdkFGRk5LMDZhdHRqdW5HT0VMRVIwRlQ0cksxVWo2?= =?iso-2022-jp?B?SFhOMEN0Nkp5WnZhVDZ1YkR0OXRxaER5R3Z4VnZTZUpRQ01wbmR3TkFi?= =?iso-2022-jp?B?YnEyUm9SbVU0Y01sU2kwd0V2eU9mMHVxSGJHaG1RbDVITEJ1R3daZ2tF?= =?iso-2022-jp?B?MzhETnFUUkkvRGd1MGFUdm5OMFZUR1M5Y1VzMU5YaEszdklUellrQjRo?= =?iso-2022-jp?B?QnVmNGxvTHRHRHM3dkxpcXVTeU1Qdk5sWWhIY0xNTmxnL1BVQUo0Q2ww?= =?iso-2022-jp?B?ZC90N3pKSTNiN1ZhY1hTTm9ya1ZRaCszV1daMHc4QllsTDFKOFNEV1RW?= =?iso-2022-jp?B?SHJuWXlhalhIekk5U0dXa3dVZGxTeHZYRGtXZkFBUzU3VmtXWE0rRVVx?= =?iso-2022-jp?B?cU90Zno3U2lzb2p6M25oQlhhL2NYZk4xNmR2OWtEV1Z2WUkwUFdVckhF?= =?iso-2022-jp?B?dFJNTHRINmdneVlDQWxRcCtFU3Z6REFTbjlPZHRXSVNLZUN4bis4NE8x?= =?iso-2022-jp?B?bUcwMHZURCtSS0FTRlhuZDNJQ1F2NHNlTmdpUVIrMW1WTlZiKzdFRkZ3?= =?iso-2022-jp?B?T1R4RGJhamhjY0tzcHZqZ2pERDVnWkVZVm9IK3BwZlBJQUtpTm1tcE5z?= =?iso-2022-jp?B?K0h1TmMyMHJuMGdaZmxCdjFIenlDc05GVTdwR0duV3ErNHhWZmZxM0Zu?= Content-Type: text/plain; charset="iso-2022-jp" 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: 349fcacc-633f-4a86-3432-08d957a93eec X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2021 00:37:46.5553 (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: wOd201zzCtVVutZWe1DAIKXJY4+QDZsimbedB/AAMGUXHbokL+BSDYfDFV1MHQ9g7Ct2GeYI5MN2I5Dy1C33Jw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4021 X-OriginatorOrg: intel.com 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: Tu, Lijuan > Sent: 2021=1B$BG/=1B(B8=1B$B7n=1B(B3=1B$BF|=1B(B 13:39 > To: Chen, LingliX ; dts@dpdk.org > Cc: Chen, LingliX ; Wang, Yinan > > Subject: RE: [dts] [PATCH V2] tests/vm2vm_virtio_pmd: fix script issues >=20 >=20 >=20 > > -----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 > > > > 1.Launch virtio-pmd on VM with_mergeable_path add --rx- > > offloads=3D0x00002000, according to dpdk commit > 4e8169eb0d2d("net/virtio: fix > > Rx scatter offload"). >=20 > Add some description of 0x00002000 is necessary, what does it mean? Yes, this is necessary, this is needed in test cases due to dpdk code chang= e from 21.08-rc2. >=20 > > 2.start_vms() use qemu_path instead mode and mergeable parameters. >=20 > 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. >=20 > > 3.fix script issues:influence between cases. > > > > Signed-off-by: Lingli Chen > > --- > > V2:modifie comment use git commit description style. > > V1:modifie script. > > > > tests/TestSuite_vm2vm_virtio_pmd.py | 97 ++++++++++++++-------------- > - > > 1 file changed, 48 insertions(+), 49 deletions(-) > > > > 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 ' ' > > > > 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=3D= 0x00 " + \ > > - "--enable-hw-vlan-strip " + "--txq=3D{0} --rxq= =3D{0} > ".format(queues) if > > queues else "" > > + "--file-prefix=3Dvirtio -- -i --tx-offloads=3D= 0x00 --rx- > > offloads=3D0x00002000 " + \ > > + "--enable-hw-vlan-strip " + ("--txq=3D{0} > > + --rxq=3D{0} ".format(queues) if queues else "") >=20 > 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> ", > 20) > > elif path_mode =3D=3D "normal": > > command =3D self.app_testpmd_path + " -c 0x3 -n 4 " + \ > > "--file-prefix=3Dvirtio -- -i --tx-offloads=3D= 0x00 " + \ > > - "--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> ", > 20) > > 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) > > > > @@ -188,29 +189,16 @@ class TestVM2VMVirtioPMD(TestCase): > > "--pdump '%s,queue=3D*,rx-dev=3D%s,mbuf-size=3D80= 00'" > > self.pdump_session.send_expect(command_line % > (self.dut.prefix_subfix, > > dump_port, self.dump_pcap), 'Port') > > > > - def start_vms(self, mode=3D0, mergeable=3DTrue, server_mode=3DFals= e, > > 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= ,gu > est_ > > 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= _ec > n=3Don > > " > > > > 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): > > > > 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=3Dpath_mode) > > > > 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=3Dpath_mode) > > > > 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_pc= i =3D > > self.vm_dut[0].ports_info[0]['pci']) > > self.start_vm_testpmd(self.vm_dut[1], path_mode, virtio_net_pc= i =3D > > self.vm_dut[1].ports_info[0]['pci']) > > self.send_and_verify(mode=3D"virtio 0.95 vector_rx", > path=3Dpath_mode) > > > > 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_pc= i =3D > > self.vm_dut[0].ports_info[0]['pci']) > > self.start_vm_testpmd(self.vm_dut[1], path_mode, virtio_net_pc= i =3D > > self.vm_dut[1].ports_info[0]['pci']) > > self.send_and_verify(mode=3D"virtio 1.0 vector_rx", path=3Dpat= h_mode) > > > > def test_vhost_vm2vm_virito_pmd_with_mergeable_path(self): > > """ > > - vhost-user + virtio-pmd with mergeable path test with payload > check > > + 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): > > > > def test_vhost_vm2vm_virito_10_pmd_with_mergeable_path(self): > > """ > > - vhost-user + virtio1.0-pmd with mergeable path test with paylo= ad > 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): > > > > 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=3Dpath_mode) > > > > def test_vhost_vm2vm_virito_11_pmd_with_mergeable_path(self): > > """ > > - vhost-user + virtio1.0-pmd with mergeable path test with paylo= ad > 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]) > > > > - def > > > test_vhost_vm2vm_virtio_split_ring_with_mergeable_path_cbdma_enabl > ed(self > > ): > > + def > > > test_vhost_vm2vm_virtio_split_ring_with_mergeable_path_cbdma_enabl > e(self): > > """ > > Test Case 9: VM2VM virtio-pmd split ring mergeable path 8 queu= es > 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 > queue") > > - self.prepare_test_env(cbdma=3DTrue, no_pci=3DFalse, client_mod= e=3DTrue, > > enable_queues=3D8, nb_cores=3D4, > > - server_mode=3DTrue, opt_queue=3D8, combi= ned=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_t= xq=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) @@ = - > 469,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= ) > > > > - def > > > test_vhost_vm2vm_split_ring_with_mergeable_path_and_server_mode_c > bdma > > _enabled(self): > > + def > > > test_vhost_vm2vm_split_ring_with_mergeable_path_and_server_mode_c > bdma > > _enable(self): > > """ > > Test Case 10: VM2VM virtio-pmd split ring mergeable path dynam= ic > 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 > queue") > > - self.prepare_test_env(cbdma=3DTrue, no_pci=3DFalse, client_mod= e=3DTrue, > > enable_queues=3D8, nb_cores=3D4, > > - server_mode=3DTrue, opt_queue=3D8, combi= ned=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_t= xq=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) @@ = - > 500,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) > > > > - def > > > test_vhost_vm2vm_packed_ring_with_mergeable_path_and_8queues_cb > dma_ > > enabled(self): > > + def > > > test_vhost_vm2vm_packed_ring_with_mergeable_path_and_8queues_cb > dma_ > > enable(self): > > """ > > Test Case 11: VM2VM virtio-pmd packed ring mergeable path 8 > queues > > 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, comb= ined=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) > > > > - 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, combin= ed=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_tx= q=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_tx= q, > > iova_mode=3Diova_mode) > > - self.start_vms(server_mode=3Dserver_mode, opt_queue=3Dopt_queu= e, > > 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) > > > > 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 >=20