From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2B43CA058A; Wed, 25 Mar 2020 09:21:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 224442BAE; Wed, 25 Mar 2020 09:21:59 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 1BEFF2BAE for ; Wed, 25 Mar 2020 09:21:56 +0100 (CET) IronPort-SDR: x0zOXIIEZrPrtf2/Sf5kHzkP+Dyb5kfQ0h1Mh57rNMn3NYn19sFdIua4ui7wEBxghzgu9Vrj7V gX2RkC2hDBBw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:21:56 -0700 IronPort-SDR: 84M7CPg+Pz8gK5VwHTAHDLPeFSICG7/eOZ4lb1/DlVnwhzQc3UhIN2bTVwK0Lqyf9GZKWAf1/I 25YnLBhWJaPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="240336030" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 25 Mar 2020 01:21:55 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Mar 2020 01:21:55 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 25 Mar 2020 16:21:53 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Wed, 25 Mar 2020 16:21:53 +0800 From: "Wang, Yinan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 06/11]vhost_event_idx_interrupt: update script according to testplan's update Thread-Index: AQHWAn3pbqTU7HTNdEOaE5KE+hEmhahY994A Date: Wed, 25 Mar 2020 08:21:53 +0000 Message-ID: <17876012c0264058b0009c93567470d2@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> <1585123857-130281-6-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-6-git-send-email-qimaix.xiao@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.2.0.6 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 V1 06/11]vhost_event_idx_interrupt: update script according to testplan's update X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Acked-by: Wang, Yinan > -----Original Message----- > From: dts On Behalf Of Xiao Qimai > Sent: 2020=1B$BG/=1B(B3=1B$B7n=1B(B25=1B$BF|=1B(B 16:11 > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 06/11]vhost_event_idx_interrupt: update script > according to testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_vhost_event_idx_interrupt.py | 52 > +++++++++++++++++++++++++--- > 1 file changed, 47 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_vhost_event_idx_interrupt.py > b/tests/TestSuite_vhost_event_idx_interrupt.py > index fb7da60..5a9f932 100644 > --- a/tests/TestSuite_vhost_event_idx_interrupt.py > +++ b/tests/TestSuite_vhost_event_idx_interrupt.py > @@ -161,7 +161,7 @@ class TestVhostEventIdxInterrupt(TestCase): > 'This qemu version should greater than 2.7 ' + \ > 'in this suite, please config it in vhost_sample.cfg= file') >=20 > - def start_vms(self, vm_num=3D1): > + def start_vms(self, vm_num=3D1, packed=3DFalse): > """ > start qemus > """ > @@ -178,6 +178,8 @@ class TestVhostEventIdxInterrupt(TestCase): > opt_args =3D "csum=3Don,mq=3Don,vectors=3D%d" % > (2*self.queues + 2) > else: > opt_args =3D "csum=3Don" > + if packed: > + opt_args =3D opt_args + ',packed=3Don' > vm_params['opt_settings'] =3D opt_args > vm_info.set_vm_device(**vm_params) > self.set_vm_cpu_number(vm_info) @@ -250,9 +252,9 @@ > class TestVhostEventIdxInterrupt(TestCase): > """ > for i in range(len(self.vm)): > self.vm[i].stop() > - self.vhost.send_expect("^c", "#", 10) > + self.dut.send_expect("killall l3fwd-power", "#", timeout=3D2) >=20 > - def test_vhost_idx_interrupt(self): > + def > test_wake_up_split_ring_vhost_user_core_with_event_idx_interrupt(self): > """ > wake up vhost-user core with l3fwd-power sample > """ > @@ -265,7 +267,7 @@ class TestVhostEventIdxInterrupt(TestCase): > self.send_and_verify() > self.stop_all_apps() >=20 > - def test_vhost_idx_interrupt_with_multi_queue(self): > + def > test_wake_up_split_ring_vhost_user_cores_with_event_idx_interrupt_mode_1 > 6_queues(self): > """ > wake up vhost-user core with l3fwd-power sample when multi > queues are enabled > """ > @@ -279,7 +281,7 @@ class TestVhostEventIdxInterrupt(TestCase): > self.send_and_verify() > self.stop_all_apps() >=20 > - def test_vhost_idx_interrupt_with_multi_vms(self): > + def > test_wake_up_split_ring_vhost_user_cores_by_multi_virtio_net_in_vms_with_ > event_idx_interrupt(self): > """ > wake up vhost-user cores with l3fwd-power sample and multi VMs > """ > @@ -292,6 +294,46 @@ class TestVhostEventIdxInterrupt(TestCase): > self.send_and_verify() > self.stop_all_apps() >=20 > + def > test_wake_up_packed_ring_vhost_user_core_with_event_idx_interrupt(self): > + """ > + wake up vhost-user core with l3fwd-power sample > + """ > + self.vm_num =3D 1 > + self.queues =3D 1 > + self.get_core_mask() > + self.lanuch_l3fwd_power() > + self.start_vms(vm_num=3Dself.vm_num, packed=3DTrue) > + self.relanuch_l3fwd_power() > + self.send_and_verify() > + self.stop_all_apps() > + > + def > test_wake_up_packed_ring_vhost_user_cores_with_event_idx_interrupt_mod > e_16_queues(self): > + """ > + wake up vhost-user core with l3fwd-power sample when multi > queues are enabled > + """ > + self.vm_num =3D 1 > + self.queues =3D 16 > + self.get_core_mask() > + self.lanuch_l3fwd_power() > + self.start_vms(vm_num=3Dself.vm_num, packed=3DTrue) > + self.relanuch_l3fwd_power() > + self.config_virito_net_in_vm() > + self.send_and_verify() > + self.stop_all_apps() > + > + def > test_wake_up_packed_ring_vhost_user_cores_by_multi_virtio_net_in_vms_wi > th_event_idx_interrupt(self): > + """ > + wake up vhost-user cores with l3fwd-power sample and multi VMs > + """ > + self.vm_num =3D 2 > + self.queues =3D 1 > + self.get_core_mask() > + self.lanuch_l3fwd_power() > + self.start_vms(vm_num=3Dself.vm_num, packed=3DTrue) > + self.relanuch_l3fwd_power() > + self.send_and_verify() > + self.stop_all_apps() > + > def tear_down(self): > """ > Run after each test case. > -- > 1.8.3.1