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 BBDACA034F; Mon, 22 Mar 2021 03:55:31 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD811140EAE; Mon, 22 Mar 2021 03:55:31 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 36F2B4069C for ; Mon, 22 Mar 2021 03:55:30 +0100 (CET) IronPort-SDR: 9qP8ADGbcYVE5vwhFYY2/w96XVjm7F0RNAqu4USK9mFs7rtZVa2Ecx1dkosGcIkOBkRKOBwyCQ 9neHYFWFe4wQ== X-IronPort-AV: E=McAfee;i="6000,8403,9930"; a="254189569" X-IronPort-AV: E=Sophos;i="5.81,266,1610438400"; d="scan'208";a="254189569" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2021 19:55:29 -0700 IronPort-SDR: Sl+Ne0Yp7fIG2eTAZMJAF8qqYJAcoY3lsAPxWWpVHcC/6fHfECdni2K5fzeSFvC+YdFyKibJYu Xk1RIaGfftwA== X-IronPort-AV: E=Sophos;i="5.81,266,1610438400"; d="scan'208";a="407623006" Received: from unknown (HELO localhost.localdomain) ([10.240.183.57]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2021 19:55:27 -0700 From: Haiyang Zhao To: dts@dpdk.org Cc: lijuan.tu@intel.com, Haiyang Zhao Date: Mon, 22 Mar 2021 10:46:12 +0800 Message-Id: <20210322024616.14499-3-haiyangx.zhao@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210322024616.14499-1-haiyangx.zhao@intel.com> References: <20210322024616.14499-1-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 2/6] framework/dut: get nic driver/firmware info 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 Sender: "dts" get nic driver/firmware info in dut prerequisites. Signed-off-by: Haiyang Zhao --- framework/dut.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/dut.py b/framework/dut.py index 5bc84fca..d31ba42c 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -424,13 +424,13 @@ class Dut(Crb): retry_times = 3 if self.ports_info: self.nic = self.ports_info[0]['port'] - # TODO: get nic driver/firmware version + self.nic.get_driver_firmware() if self.nic.default_driver == 'ice': self.get_nic_pkg(retry_times) def get_nic_pkg(self, retry_times=3): self.nic.pkg = self.nic.get_nic_pkg() - while not self.nic.pkg and retry_times > 0: + while not self.nic.pkg.get('type') and retry_times > 0: self.restore_interfaces() self.nic.pkg = self.nic.get_nic_pkg() retry_times = retry_times - 1 -- 2.17.1