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 41517A0542; Thu, 13 Feb 2020 02:19:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 35AB61BDF8; Thu, 13 Feb 2020 02:19:32 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id C39103256 for ; Thu, 13 Feb 2020 02:19:30 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2020 17:19:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,434,1574150400"; d="scan'208";a="281389552" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 12 Feb 2020 17:19:29 -0800 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 12 Feb 2020 17:19:29 -0800 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 12 Feb 2020 17:19:28 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 12 Feb 2020 17:19:28 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.46]) with mapi id 14.03.0439.000; Thu, 13 Feb 2020 09:19:27 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/vhost_multi_queue_qemu: fix issue abuot get interface of tester Thread-Index: AQHV4UiuZib/NXvqY0+4nKDuG9H2yagYVK5w Date: Thu, 13 Feb 2020 01:19:26 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBC66EA@SHSMSX101.ccr.corp.intel.com> References: <1581473345-82887-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1581473345-82887-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-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_multi_queue_qemu: fix issue abuot get interface of tester 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 malihong > Sent: Wednesday, February 12, 2020 10:09 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] tests/vhost_multi_queue_qemu: fix issue abuot g= et > interface of tester >=20 > From: lihong >=20 > Signed-off-by: lihong > --- > tests/TestSuite_vhost_multi_queue_qemu.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_vhost_multi_queue_qemu.py > b/tests/TestSuite_vhost_multi_queue_qemu.py > index 1232cf3..5a1a660 100644 > --- a/tests/TestSuite_vhost_multi_queue_qemu.py > +++ b/tests/TestSuite_vhost_multi_queue_qemu.py > @@ -49,8 +49,6 @@ class TestVhostUserOneCopyOneVm(TestCase): > # Get and verify the ports > self.dut_ports =3D self.dut.get_ports() > self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports for = testing") > - local_port =3D self.tester.get_local_port(self.dut_ports[0]) > - self.tx_interface =3D self.tester.get_interface(local_port) > # Get the port's socket > self.pf =3D self.dut_ports[0] > netdev =3D self.dut.ports_info[self.pf]['port'] > @@ -177,6 +175,8 @@ class TestVhostUserOneCopyOneVm(TestCase): > While verify_type is "vhost queue < virtio queue", the vhost sho= uld > forward all set of data > While verify_type is "vhost queue > virtio queue", the vhost sho= uld > forward at least one set of data > """ > + local_port =3D self.tester.get_local_port(self.dut_ports[0]) > + self.tx_interface =3D self.tester.get_interface(local_port) > for frame_size in self.frame_sizes: > info =3D "Running test %s, and %d frame size." % (self.runni= ng_case, > frame_size) > self.logger.info(info) > -- > 1.9.3