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 9F2CAA04B5; Wed, 4 Dec 2019 06:36:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8EC535F13; Wed, 4 Dec 2019 06:36:27 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id EB7144C99 for ; Wed, 4 Dec 2019 06:36:26 +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 orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2019 21:36:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,276,1571727600"; d="scan'208";a="208735742" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 03 Dec 2019 21:36:25 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Dec 2019 21:36:25 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Dec 2019 21:36:25 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.29]) with mapi id 14.03.0439.000; Wed, 4 Dec 2019 13:36:23 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] tests/shutdown_api:'port stop' recover the orignal link status for CVL Thread-Index: AQHVpbZN/BNF8HRGsE+HVHiREzkIf6epfhDA Date: Wed, 4 Dec 2019 05:36:22 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB7D2D3@SHSMSX101.ccr.corp.intel.com> References: <1574954547-24055-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1574954547-24055-1-git-send-email-wenjiex.a.li@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODNhZjg5MGMtOWMyMi00YjFjLWI0ZTQtZTBjMzI4NzEwZDUzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibXU1YWZTWForOEN1blB6M0FTcndmaUZjMGhTM282RjJDTU13Y2cyOG1MUTY1REUyWk5zU3A4aVR3MWswbGVEViJ9 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] tests/shutdown_api:'port stop' recover the orignal link status for CVL 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 Wenjie Li > Sent: Thursday, November 28, 2019 11:22 PM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V1] tests/shutdown_api:'port stop' recover the orig= nal > link status for CVL >=20 > In DPDK fdcf92ed6637b790, the 'port stop' will recovery the oringnal link > status for CVL. > If the link is up, it should be up after 'port stop'; if down, then be do= wn. > This is different with other NICs. >=20 > In test case stop_restart, the port is up before 'port stop', so verify t= he port is > UP for CVL and down for other NICs. >=20 > Signed-off-by: Wenjie Li > --- > tests/TestSuite_shutdown_api.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_shutdown_api.py > b/tests/TestSuite_shutdown_api.py index 63fff84..58daad1 100644 > --- a/tests/TestSuite_shutdown_api.py > +++ b/tests/TestSuite_shutdown_api.py > @@ -201,7 +201,10 @@ class TestShutdownApi(TestCase): > self.check_forwarding(received=3DFalse) > self.dut.send_expect("port stop all", "testpmd> ", 100) > time.sleep(5) > - self.check_ports(status=3DFalse) > + if self.nic in ["columbiaville_25g", "columbiaville_100g"]: > + self.check_ports(status=3DTrue) > + else: > + self.check_ports(status=3DFalse) > self.dut.send_expect("port start all", "testpmd> ", 100) > time.sleep(5) > self.check_ports(status=3DTrue) > -- > 2.17.1