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 06491A0613 for ; Wed, 28 Aug 2019 07:56:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EB8B81C1F3; Wed, 28 Aug 2019 07:56:10 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 888401C1CC for ; Wed, 28 Aug 2019 07:56:08 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2019 22:56:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,440,1559545200"; d="scan'208";a="174801478" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 27 Aug 2019 22:56:08 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 27 Aug 2019 22:56:08 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 27 Aug 2019 22:56:08 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by shsmsx102.ccr.corp.intel.com ([169.254.2.19]) with mapi id 14.03.0439.000; Wed, 28 Aug 2019 13:56:06 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt: optimization code Thread-Index: AQHVUals4StEX/ujGEO7M/xmvr9l4KcQJzig Date: Wed, 28 Aug 2019 05:56:06 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB06724@SHSMSX101.ccr.corp.intel.com> References: <1565655001-32368-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1565655001-32368-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZThhNjg1YjItOTAxMi00NGJjLWFmMjktOTMzMzhmMTFjYWI0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiRXAwK3QwYTd1WlJxbjA0R1wvMGd5RVl3cDRFemVYNVVCTHNlTzdVMDNJYnJCWXlDMU5VSEp5amJWWTRzYVFJN3MifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt: optimization code 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Tuesday, August 13, 2019 8:10 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt: optimization > code >=20 > 1. flush buffer before launch l3fwd-power 2. add -w param when start > testpmd >=20 > Signed-off-by: lihong > --- > tests/TestSuite_vhost_virtio_user_interrupt.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py > b/tests/TestSuite_vhost_virtio_user_interrupt.py > index 6713590..5422e04 100644 > --- a/tests/TestSuite_vhost_virtio_user_interrupt.py > +++ b/tests/TestSuite_vhost_virtio_user_interrupt.py > @@ -96,6 +96,7 @@ class TestVirtioUserInterrupt(TestCase): > " -P --config=3D'(0,0,%s)' --parse-ptype " > cmd_l3fwd =3D cmd_l3fwd % (self.mem_channel, self.core_mask_l3fw= d, > path, self.core_interrupt) > + self.l3fwd.get_session_before(timeout=3D2) > self.l3fwd.send_expect(cmd_l3fwd, "POWER", 40) > time.sleep(10) > out =3D self.l3fwd.get_session_before() @@ -108,6 +109,9 @@ clas= s > TestVirtioUserInterrupt(TestCase): > """ > start testpmd on vhost side > """ > + if len(pci) =3D=3D 0: > + pci_info =3D self.dut.ports_info[self.dut_ports[0]]['pci'] > + pci =3D '-w %s' % pci_info > cmd_vhost_user =3D self.dut.target + "/app/testpmd -n %d -c %s "= + \ > "--socket-mem 1024,1024 --legacy-mem %s " + \ > "--file-prefix=3Dvhost " + \ @@ -143,8 +147,8 @@ class > TestVirtioUserInterrupt(TestCase): > elif status =3D=3D "sleeps": > info =3D "lcore %s sleeps until interrupt triggers" > info =3D info % self.core_interrupt > - self.logger.info(info) > self.verify(info in out, "The CPU status not right for %s" % inf= o) > + self.logger.info(info) >=20 > def check_virtio_side_link_status(self, status): > out =3D self.virtio.send_expect("show port info 0", "testpmd> ",= 20) > -- > 2.7.4