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 22400A04C1; Fri, 22 Nov 2019 04:04:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B86922E8F; Fri, 22 Nov 2019 04:04:35 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id A09022C6D for ; Fri, 22 Nov 2019 04:04:33 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2019 19:04:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,228,1571727600"; d="scan'208";a="205354495" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 21 Nov 2019 19:04:31 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 Nov 2019 19:04:31 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 Nov 2019 19:04:31 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.2]) with mapi id 14.03.0439.000; Fri, 22 Nov 2019 11:04:29 +0800 From: "Tu, Lijuan" To: "Peng, ZhihongX" , "dts@dpdk.org" CC: "Peng, ZhihongX" Thread-Topic: [dts] [PATCH V2] tests/TestSuite_userspace_ethtool.py:Before the exception exit, it needs to be re-bound to the DPDK. Thread-Index: AQHVk4tuXZHe/qTHdki5Z0H+PWLiAqeWm/xg Date: Fri, 22 Nov 2019 03:04:29 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB6641B@SHSMSX101.ccr.corp.intel.com> References: <20191105033042.19599-1-zhihongx.peng@intel.com> In-Reply-To: <20191105033042.19599-1-zhihongx.peng@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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjczNGExOTYtMDE5Ni00OThjLTliY2MtMDhlNjRkMWE3NmVmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNVNiZWdqWGdqU2hPczdCK29US1I2UnhjbWt1XC9OYmRLQnBjckhzdUFRV0lERCtWbGdMeEw1TkJyWEp5YlR6OUoifQ== 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/TestSuite_userspace_ethtool.py:Before the exception exit, it needs to be re-bound to the DPDK. 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 Peng Zhihong > Sent: Tuesday, November 5, 2019 11:31 AM > To: dts@dpdk.org > Cc: Peng, ZhihongX > Subject: [dts] [PATCH V2] tests/TestSuite_userspace_ethtool.py:Before the > exception exit, it needs to be re-bound to the DPDK. >=20 > tests/TestSuite_userspace_ethtool.py:Before the exception exit, it needs = to > be re-bound to the DPDK. >=20 > Signed-off-by: Peng Zhihong > --- > tests/TestSuite_userspace_ethtool.py | 10 ++-------- > 1 file changed, 2 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_userspace_ethtool.py > b/tests/TestSuite_userspace_ethtool.py > index 92724aa..31f8a87 100644 > --- a/tests/TestSuite_userspace_ethtool.py > +++ b/tests/TestSuite_userspace_ethtool.py > @@ -247,12 +247,9 @@ class TestUserspaceEthtool(TestCase, > IxiaPacketGenerator): > sys_nic_info =3D self.linux_get_nic_info(intf_name) > status, msg =3D self.check_driver_info(intf_name, sys_nic_in= fo, > dpdk_nic_infos[str(index)]) > self.logger.info(msg) > - self.verify(status, msg) > - > - for index in range(len(self.ports)): > # bind to original driver > - portinfo =3D portsinfo[index] > portinfo['net_dev'].bind_driver(portinfo['ori_driver']) > + self.verify(status, msg) >=20 > self.dut.send_expect(self.cmd, "EthApp>", 60) > # ethtool doesn't support port disconnect by tools of linux @@ -= 335,12 > +332,9 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): > # get linux interface > intf =3D netdev.get_interface_name() > out =3D self.dut.send_expect("ethtool -d %s raw off file %s"= % (intf, > portinfo['reg_file']), "# ") > - self.verify(("register" in out and "CTRL" in out), "Failed t= o dump %s > registers" % intf) > - > - for index in range(len(self.ports)): > # bind to original driver > - portinfo =3D portsinfo[index] > portinfo['net_dev'].bind_driver(portinfo['ori_driver']) > + self.verify(("register" in out and "CTRL" in out), "Failed > + to dump %s registers" % intf) >=20 > def test_retrieve_eeprom(self): > """ > -- > 2.17.1