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 66971A00C2; Thu, 23 Apr 2020 07:53:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5E58C1C2A0; Thu, 23 Apr 2020 07:53:26 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 8278B1C293 for ; Thu, 23 Apr 2020 07:53:25 +0200 (CEST) IronPort-SDR: kmNMzmVjlnlZ6xLMvKxcp6CI+oEkmWtlfxYXRll/Y4hbj6tPXpFwECPColIrTh4aV3B+xhPYXq 6wFfvfabamKw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 22:53:24 -0700 IronPort-SDR: 2XGdbRQh8bdTqp3JunJ3LKi2kQTO1FguxUK1CY8q+LxCeFYNRJC8h9zWMuUyiYcsDnEMl99isu irRTCWDlqUjw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,305,1583222400"; d="scan'208";a="246169664" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 22 Apr 2020 22:53:24 -0700 Received: from fmsmsx163.amr.corp.intel.com (10.18.125.72) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Apr 2020 22:52:54 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx163.amr.corp.intel.com (10.18.125.72) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Apr 2020 22:52:54 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.89]) with mapi id 14.03.0439.000; Thu, 23 Apr 2020 13:52:52 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1]softnic: restore nic driver after test finished Thread-Index: AQHWGGksmnosjndSvEm/2iD2y/I66aiGNgOA Date: Thu, 23 Apr 2020 05:52:50 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0F1D4@SHSMSX101.ccr.corp.intel.com> References: <1587533906-380636-1-git-send-email-weix.xie@intel.com> In-Reply-To: <1587533906-380636-1-git-send-email-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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1]softnic: restore nic driver after test finished 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 Xie,WeiX > Sent: Wednesday, April 22, 2020 1:38 PM > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1]softnic: restore nic driver after test finished >=20 > From: "Xie,WeiX" >=20 > *. restore nic drivers after case end to avoid interfere other cases >=20 > Signed-off-by: Xie,WeiX > --- > tests/TestSuite_softnic.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_softnic.py b/tests/TestSuite_softnic.py inde= x > 9a400fb..c6ba6b9 100644 > --- a/tests/TestSuite_softnic.py > +++ b/tests/TestSuite_softnic.py > @@ -55,7 +55,7 @@ class TestSoftnic(TestCase): >=20 > # Verify that enough ports are available > self.verify(len(ports) >=3D 1, "Insufficient ports for testing") > - > + self.def_driver =3D > + self.dut.ports_info[ports[0]]['port'].get_nic_driver() > self.ports_socket =3D self.dut.get_numa_id(ports[0]) > # Verify that enough threads are available > cores =3D self.dut.get_core_list("1S/1C/1T") > @@ -223,4 +223,4 @@ class TestSoftnic(TestCase): > """ > Run after each test suite. > """ > - pass > + self.dut.bind_interfaces_linux(driver=3Dself.def_driver, > + nics_to_bind=3Dself.dut.get_ports()) > -- > 1.8.3.1