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 B40A9A2EEB for ; Wed, 11 Sep 2019 10:38:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F0821BFB7; Wed, 11 Sep 2019 10:38:21 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 184DC1BF87 for ; Wed, 11 Sep 2019 10:38:19 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2019 01:38:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="185760581" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 11 Sep 2019 01:38:18 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 11 Sep 2019 01:38:18 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 11 Sep 2019 01:38:17 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.113]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.92]) with mapi id 14.03.0439.000; Wed, 11 Sep 2019 16:38:16 +0800 From: "Zhao, XinfengX" To: "dts@dpdk.org" CC: "Chen, Zhaoyan" Thread-Topic: [dts][PATCH] tests: fix device link down failed in pmd_bonded Thread-Index: AQHVaHwndhGytOXovUed7Ad9XNZ0eacmJ3Fw Date: Wed, 11 Sep 2019 08:38:15 +0000 Message-ID: <44051B25D8C8784BB77FFB604D6A70CA1208909C@shsmsx102.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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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" Tested-by: Zhao, XinfengX -----Original Message----- From: Zhao, XinfengX=20 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 Signed-off-by: Xinfeng Zhao --- tests/TestSuite_pmd_bonded.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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"\x5= 0"*%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_nic= _driver() + if driver =3D=3D "i40e": + self.tester.send_expect("ethtool --set-priv-flags %s link-= down-on-close on" + % intf, "# ", 10) + def set_up(self): """ Run before each test case. -- 2.17.1