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 BDAB4A0564; Tue, 24 Mar 2020 07:51:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 778071C0AB; Tue, 24 Mar 2020 07:51:46 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id CCC7F1C07D for ; Tue, 24 Mar 2020 07:51:44 +0100 (CET) IronPort-SDR: eGdRjV5gdRo0DhV8Nfw896XnfHARcf7cvTwr8pALzmBV1k7QwFG+JKPsiK8c2NYwq5RyV5LO62 6x6bcNFuvReg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2020 23:51:43 -0700 IronPort-SDR: buq8G7yL68upw8N6eoGPPyyXQ7UF1bg1xIWicgIV9nNCLkj+++tbIf/A0L0eOp9JCN09hNKVxR Jr35ic44DzOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,299,1580803200"; d="scan'208";a="281587977" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 23 Mar 2020 23:51:43 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Mar 2020 23:51:43 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Mar 2020 23:51:43 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by shsmsx102.ccr.corp.intel.com ([169.254.2.50]) with mapi id 14.03.0439.000; Tue, 24 Mar 2020 14:51:41 +0800 From: "Tu, Lijuan" To: "Zeng, XiaoxiaoX" , "dts@dpdk.org" CC: "Zeng, XiaoxiaoX" Thread-Topic: [dts] [PATCH V2]tests/shutdown_api: fix can't create vf Thread-Index: AQHV/pMBS4hhT4arXkm+i70WrvPIP6hXVCiw Date: Tue, 24 Mar 2020 06:51:40 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBF0A45@SHSMSX101.ccr.corp.intel.com> References: <1584693451-35213-1-git-send-email-xiaoxiaox.zeng@intel.com> In-Reply-To: <1584693451-35213-1-git-send-email-xiaoxiaox.zeng@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 V2]tests/shutdown_api: fix can't create vf 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 Zeng Xiaoxiao > Sent: Friday, March 20, 2020 4:38 PM > To: dts@dpdk.org > Cc: Zeng, XiaoxiaoX > Subject: [dts] [PATCH V2]tests/shutdown_api: fix can't create vf >=20 > Signed-off-by: Zeng Xiaoxiao > --- > tests/TestSuite_shutdown_api.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_shutdown_api.py > b/tests/TestSuite_shutdown_api.py index 11d451b..8699e79 100644 > --- a/tests/TestSuite_shutdown_api.py > +++ b/tests/TestSuite_shutdown_api.py > @@ -260,6 +260,7 @@ class TestShutdownApi(TestCase): > self.vf_assign_method =3D 'vfio-pci' > self.dut.send_expect('modprobe vfio-pci', '#') >=20 > + self.dut.setup_modules_linux(self.target, 'igb_uio', '') > self.bind_nic_driver(self.dut_ports[:1], driver=3D"igb_uio") > self.used_dut_port =3D self.dut_ports[0] > tester_port =3D self.tester.get_local_port(self.used_dut_port) > @@ -296,6 +297,7 @@ class TestShutdownApi(TestCase): >=20 > self.vm_env_done =3D True > self.dut_testpmd.quit() > + self.bind_nic_driver(self.dut_ports[:1], driver=3Dself.vf_driver= ) >=20 > def destroy_vm_env(self): > if not self.vm_env_done: > @@ -539,6 +541,7 @@ class TestShutdownApi(TestCase): > self.dut_testpmd.quit() > time.sleep(3) > self.vm0_dut.kill_all() > + self.destroy_vm_env() >=20 > def test_enable_disablejumbo(self): > """ > @@ -764,5 +767,6 @@ class TestShutdownApi(TestCase): > """ > Run after each test suite. > """ > + if self.vm_env_done: > + self.destroy_vm_env() > self.dut.kill_all() > - self.destroy_vm_env() > -- > 1.8.3.1