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 E13E3A0471 for ; Wed, 14 Aug 2019 04:43:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CD32D1BE8B; Wed, 14 Aug 2019 04:43:17 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 2D7D11BE89 for ; Wed, 14 Aug 2019 04:43:16 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 19:43:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,383,1559545200"; d="scan'208";a="187976313" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 13 Aug 2019 19:43:15 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 13 Aug 2019 19:43:14 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 13 Aug 2019 19:43:14 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.112]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.139]) with mapi id 14.03.0439.000; Wed, 14 Aug 2019 10:43:12 +0800 From: "Wang, Yinan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt: optimization code Thread-Index: AQHVUalsU0opUqyY5Uu+3oyBwCvyDab58Kww Date: Wed, 14 Aug 2019 02:43:11 +0000 Message-ID: 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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2QyOTA3ZDMtOGM0ZS00ODRmLWE3NDYtMTdiMTNmOGZjZDU1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNU5lSzdtSDVMdEhsY0hNT3FVb3pjeDY2bWJsRFdCYlNxUVdEeDRvUVNjN2lZcmNTcEkrcHNJK3VINVlkcXladSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" 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" Acked-by: Wang, Yinan > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: 2019=1B$BG/=1B(B8=1B$B7n=1B(B13=1B$BF|=1B(B 8:10 > 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 test= pmd >=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