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 F0C8DA2EFC for ; Fri, 20 Sep 2019 08:16:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C70921F2AC; Fri, 20 Sep 2019 08:16:06 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id BB3571F143 for ; Fri, 20 Sep 2019 08:16:04 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 23:16:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,527,1559545200"; d="scan'208";a="217554580" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 19 Sep 2019 23:16:03 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:16:03 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 19 Sep 2019 23:16:02 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx608.amr.corp.intel.com (10.18.126.88) 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, 19 Sep 2019 23:16:02 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by shsmsx102.ccr.corp.intel.com ([169.254.2.113]) with mapi id 14.03.0439.000; Fri, 20 Sep 2019 14:16:01 +0800 From: "Tu, Lijuan" To: "Zhao, XinfengX" , "dts@dpdk.org" CC: "Zhao, XinfengX" Thread-Topic: [dts] [PATCH] tests: fix device link down failed in pmd_bonded Thread-Index: AQHVaHwsPeXZtMOCtkqHOGVhxRSd/6c0JLxA Date: Fri, 20 Sep 2019 06:16:00 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB24AA3@SHSMSX101.ccr.corp.intel.com> References: <1568161781-19723-1-git-send-email-xinfengx.zhao@intel.com> In-Reply-To: <1568161781-19723-1-git-send-email-xinfengx.zhao@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODFhYThhNzEtYzZmOS00MWNhLWI5ZDktOTU3NDkzZGE1OWI4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiK2hta3F1V0gzQzRGMnpPUnU4c201Y2dhdmR4NjRGVlJucnpUS0JySlFDYnFOTjJ1MXlxWTJpckUwOHhvVlFLVyJ9 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] tests: fix device link down failed in pmd_bonded 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 Xinfeng Zhao > Sent: Wednesday, September 11, 2019 8:30 AM > To: dts@dpdk.org > Cc: Zhao, XinfengX > Subject: [dts] [PATCH] tests: fix device link down failed in pmd_bonded >=20 > Signed-off-by: Xinfeng Zhao > --- > tests/TestSuite_pmd_bonded.py | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/tests/TestSuite_pmd_bonded.py > b/tests/TestSuite_pmd_bonded.py index 9ae6d32..f0c39d8 100644 > --- a/tests/TestSuite_pmd_bonded.py > +++ b/tests/TestSuite_pmd_bonded.py > @@ -806,6 +806,14 @@ UDP(sport=3Dsrcport, > dport=3Ddestport)/Raw(load=3D"\x50"*%s)], iface=3D"%s", count=3D%d)' >=20 > self.tester_bond =3D "bond0" >=20 > + for port in self.dut_ports: > + tester_port =3D self.tester.get_local_port(port) > + intf =3D self.tester.get_interface(tester_port) > + driver =3D self.tester.ports_info[tester_port]['port'].get_n= ic_driver() > + if driver =3D=3D "i40e": > + self.tester.send_expect("ethtool --set-priv-flags %s lin= k-down-on- > close on" > + % intf, "# ", 10) > + > def set_up(self): > """ > Run before each test case. > -- > 2.17.1