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 5DF2AA0523; Thu, 2 Jul 2020 09:20:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4739C1D618; Thu, 2 Jul 2020 09:20:15 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id DB8F11D5FB for ; Thu, 2 Jul 2020 09:20:12 +0200 (CEST) IronPort-SDR: 5PS/ZnDLfzkipqNX9tmNWW6efEz/dkSkyBVVAKVnLrBVq+Rui3pfbZXzweLNjIhEWHoFuMe05y HZqHYE/qHsCg== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="126436008" X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="126436008" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 00:20:11 -0700 IronPort-SDR: vbp//KFcCcfrrh93sLYpIRwmOrtk8O/0BagrylcZWFUS0j0v9N92tqa7Xby0SKMkzGTUTO8ip9 suV49HrmCmvg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="295803952" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga002.jf.intel.com with ESMTP; 02 Jul 2020 00:20:11 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 2 Jul 2020 00:20:10 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 2 Jul 2020 00:20:10 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 2 Jul 2020 00:20:10 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0439.000; Thu, 2 Jul 2020 15:20:08 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed Thread-Index: AQHWUD+p4ddpjoMYJkG9Nk9IF/Mx6qjz4erg Date: Thu, 2 Jul 2020 07:20:07 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC68E34@SHSMSX101.ccr.corp.intel.com> References: <20200702071018.8551-1-weix.xie@intel.com> In-Reply-To: <20200702071018.8551-1-weix.xie@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="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf to iavf when bind i40evf failed 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 On Behalf Of Xie wei > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B2=1B$BF|=1B(B 15:10 > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1] tests/runtime_vf_queue_number:restore i40e vf t= o > iavf when bind i40evf failed >=20 > call interface to determine which kernel driver to bind on vm, and the ca= se just > verifies queue number. >=20 > Signed-off-by: Xie wei > --- > tests/TestSuite_runtime_vf_queue_number.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_runtime_vf_queue_number.py > b/tests/TestSuite_runtime_vf_queue_number.py > index 940e36a..93caf9e 100644 > --- a/tests/TestSuite_runtime_vf_queue_number.py > +++ b/tests/TestSuite_runtime_vf_queue_number.py > @@ -365,7 +365,7 @@ class TestRuntimeVfQn(TestCase): > host_eal_param =3D '-w %s,queue-num-per-vf=3D2 --file-prefix=3Dt= est1 --socket- > mem 1024,1024' % self.pf_pci > self.host_testpmd.start_testpmd(self.pmdout.default_cores, param= =3D'', > eal_param=3Dhost_eal_param) > self.vm0_testpmd =3D PmdOutput(self.vm_dut_0) > - self.vm0_testpmd.execute_cmd("./usertools/dpdk-devbind.py -b > i40evf %s" % self.vm_dut_0.ports_info[0]['pci'], expected=3D'# ') > + self.vm_dut_0.restore_interfaces() > # wait few seconds for link ready > countdown =3D 60 > while countdown: > @@ -380,7 +380,7 @@ class TestRuntimeVfQn(TestCase): > countdown -=3D 1 > continue > output =3D self.vm0_testpmd.execute_cmd("ethtool -S %s" % inf, > expected=3D'# ') > - self.verify("tx-0.packets: 0" in output and "tx-1.packets: 0" in= output, "VF0 > rxq and txq number is not 2.") > + self.verify("tx-0.packets" in output and "tx-1.packets" in outpu= t, "VF0 rxq > and txq number is not 2.") >=20 > def tear_down(self): > self.stop_vm0() > -- > 2.17.1