From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 37AB8A034D; Wed, 12 Jan 2022 06:56:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F05FB411C3; Wed, 12 Jan 2022 06:56:05 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 68B3B40141 for ; Wed, 12 Jan 2022 06:56:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641966964; x=1673502964; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=o0IqOWt+ANlF7BQ+05KyQ5QN9L42NJClk+moBOSwVL0=; b=Rgp2grtwoey2TMA9rwC+TfX5EoRPMXl1kqLg5qOizk06Fgq9hbUADPPN 7idzcy2N0SEINnVjgE1SIMCc7xFDdWn9YGZpvRtw6DJM/6BvaxGcro22v dJjMadTakglQ11Y6+rnP+gJBZcK+7CXwWa2kEUFi7Nvn8yJ1O8CMJjPth sL7ZXpDl2K0Dw09umnEk9VDwv1LxPBuzE+vBxU60AMuUntyjIOdk48bx+ HipMxOaXOOVtlmoqTZPzKNTGB2FxSosj/6Umj5HdltvDH3u1DK5RZbTCH MwsIwixHj6uUCFCSGVuqHnrCQ9+MGlNuXF8SyQ8f8gfi5+f/4wt6hkp4Y Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10224"; a="268008425" X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="268008425" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 21:56:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="576443173" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga008.fm.intel.com with ESMTP; 11 Jan 2022 21:56:03 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 11 Jan 2022 21:56:02 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 12 Jan 2022 13:56:00 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2308.020; Wed, 12 Jan 2022 13:56:00 +0800 From: "Tu, Lijuan" To: "Huang, ZhiminX" , "dts@dpdk.org" CC: "Huang, ZhiminX" Subject: RE: [dts] [PATCH V1] framework/crb:add check link status public method Thread-Topic: [dts] [PATCH V1] framework/crb:add check link status public method Thread-Index: AQHYAicgKGjBKgnj2UatvjqQZ1Ze8Kxe7Qiw Date: Wed, 12 Jan 2022 05:56:00 +0000 Message-ID: <1e0ec2a8fbd644d793ea718e34a2d319@intel.com> References: <20220105195613.15561-1-zhiminx.huang@intel.com> In-Reply-To: <20220105195613.15561-1-zhiminx.huang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 > -----Original Message----- > From: Zhimin Huang > Sent: 2022=1B$BG/=1B(B1=1B$B7n=1B(B6=1B$BF|=1B(B 3:56 > To: dts@dpdk.org > Cc: Huang, ZhiminX > Subject: [dts] [PATCH V1] framework/crb:add check link status public meth= od >=20 > when we meet testpmd or app start but link is not up. > we can loop up the interface to ensure link. >=20 > Signed-off-by: Zhimin Huang > --- > framework/crb.py | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) >=20 > diff --git a/framework/crb.py b/framework/crb.py index bd4f565d..22af9ad3 > 100755 > --- a/framework/crb.py > +++ b/framework/crb.py > @@ -907,3 +907,17 @@ class Crb(object): > else: > self.logger.info("NIC %s may be not find %s" % (intf, flag)) > return False > + > + def check_interfaces_link(self, intf, timeout=3D15): It only accept 1 interface, so the function name should be " check_interfac= e_link "