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 9ACC7A0562; Tue, 31 Mar 2020 05:00:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8C56A1C08D; Tue, 31 Mar 2020 05:00:04 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id A55351C045 for ; Tue, 31 Mar 2020 05:00:01 +0200 (CEST) IronPort-SDR: tf770JOOt/5ZXcd6NnVrFYli1zRFLuNn9qkOBAgcRni4oEuaGMib3sjBkfjmCiY7XB99FuoL1a B+WvWMDlLmaA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 20:00:00 -0700 IronPort-SDR: L9hvU6ehUf0vJQtyccScKQIZgk3rAhz6Dnfqrep03YNbtaF7Wz/xdHoj4xqYAjnYD7AyRYhNON mpiBTAQZcE1A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="272592068" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 30 Mar 2020 20:00:00 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 20:00:00 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 31 Mar 2020 10:59:58 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Tue, 31 Mar 2020 10:59:58 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 06/11]vhost_event_idx_interrupt: update script according to testplan's update Thread-Index: AQHWAn3gHqV6ON+IpEqdwURwBkPXAqhiC+qg Date: Tue, 31 Mar 2020 02:59:58 +0000 Message-ID: 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: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" 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" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Wednesday, March 25, 2020 4:11 PM > 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_mo > de_16_queues(self): > """ > wake up vhost-user core with l3fwd-power sample when multi queue= s > 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(s > elf): > + """ > + 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_ > mode_16_queues(self): > + """ > + wake up vhost-user core with l3fwd-power sample when multi queue= s > 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_vm > s_with_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