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 EE9CB458CD; Mon, 2 Sep 2024 11:58:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3FE440E01; Mon, 2 Sep 2024 11:55:48 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mails.dpdk.org (Postfix) with ESMTP id 5962340693 for ; Mon, 2 Sep 2024 11:55:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725270926; x=1756806926; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7K9tMkMR128gRXNE4Q4/Q5ZQNJsEO+ZFrzwWM/2DdYs=; b=RkQt0wM40qFPCQj2ltlSLJJeekpQADW81jcWZQt3QGq7WsVyZaVeUsGP IVil8A5GjSrRzIydZAsLiVHaZDWwGsSZPKHdVMOz0xulAWOtOG0s2PkTo 04PVL8OU5PFE88kLealwWtmA+UJAwylnIn4cAU9CHgF6ObndGHWycw49I 7CJyagAphtfpCAeCKxf8hOVwFv/86r9QTrBEKdJCRhjLeIdIWwbiZX+0z U26VJaDpENAVRJg7trp2OuYe76W4ngGungWLrsmwgmYMQ6DEZhL2nIBZQ +S53EV+n1+VoE4wYQXm5xDrYRcdSVrX9wmF9e3i8Kc+G6OZ6T0SU8cRQf A==; X-CSE-ConnectionGUID: pY+SBd8UQJqBNWCaFEcGUA== X-CSE-MsgGUID: aWLWaTAvTBy8cjdXzTsWRg== X-IronPort-AV: E=McAfee;i="6700,10204,11182"; a="26747256" X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="26747256" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2024 02:55:25 -0700 X-CSE-ConnectionGUID: Si7GVICpTPKOTZ3XX9ydWA== X-CSE-MsgGUID: 5ZQvBZCeS9S6pjxJ2Abr/g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="64598017" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa009.fm.intel.com with ESMTP; 02 Sep 2024 02:55:24 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: bruce.richardson@intel.com Subject: [PATCH v1 27/30] net/i40e/base: change time variables from 64 bit to 32 bit Date: Mon, 2 Sep 2024 10:54:39 +0100 Message-ID: X-Mailer: git-send-email 2.43.5 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Jaroslaw Ilgiewicz Time variables were designed for 32 bit and 64 bit variables are not necessary. Changed all to 32 bit. Signed-off-by: Jaroslaw Ilgiewicz Signed-off-by: Anatoly Burakov --- drivers/net/i40e/base/i40e_common.c | 2 +- drivers/net/i40e/base/i40e_nvm.c | 6 +++--- drivers/net/i40e/base/i40e_prototype.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c index 07e18deaea..a2cfafeda9 100644 --- a/drivers/net/i40e/base/i40e_common.c +++ b/drivers/net/i40e/base/i40e_common.c @@ -3596,7 +3596,7 @@ enum i40e_status_code i40e_aq_debug_write_register(struct i40e_hw *hw, enum i40e_status_code i40e_aq_request_resource(struct i40e_hw *hw, enum i40e_aq_resources_ids resource, enum i40e_aq_resource_access_type access, - u8 sdp_number, u64 *timeout, + u8 sdp_number, u32 *timeout, struct i40e_asq_cmd_details *cmd_details) { struct i40e_aq_desc desc; diff --git a/drivers/net/i40e/base/i40e_nvm.c b/drivers/net/i40e/base/i40e_nvm.c index 2f6cd9eda5..185af67817 100644 --- a/drivers/net/i40e/base/i40e_nvm.c +++ b/drivers/net/i40e/base/i40e_nvm.c @@ -62,7 +62,7 @@ enum i40e_status_code i40e_acquire_nvm(struct i40e_hw *hw, { enum i40e_status_code ret_code = I40E_SUCCESS; u32 gtime, timeout; - u64 time_left = 0; + u32 time_left = 0; DEBUGFUNC("i40e_acquire_nvm"); @@ -127,8 +127,8 @@ enum i40e_status_code i40e_acquire_nvm_ex(struct i40e_hw *hw, u32 custom_timeout) { enum i40e_status_code ret_code = I40E_SUCCESS; - u64 gtime, timeout; - u64 time_left = 0; + u32 gtime, timeout; + u32 time_left = 0; DEBUGFUNC("i40e_acquire_nvm"); diff --git a/drivers/net/i40e/base/i40e_prototype.h b/drivers/net/i40e/base/i40e_prototype.h index 440e713a28..e7e6d4c427 100644 --- a/drivers/net/i40e/base/i40e_prototype.h +++ b/drivers/net/i40e/base/i40e_prototype.h @@ -233,7 +233,7 @@ enum i40e_status_code i40e_aq_set_switch_config(struct i40e_hw *hw, enum i40e_status_code i40e_aq_request_resource(struct i40e_hw *hw, enum i40e_aq_resources_ids resource, enum i40e_aq_resource_access_type access, - u8 sdp_number, u64 *timeout, + u8 sdp_number, u32 *timeout, struct i40e_asq_cmd_details *cmd_details); enum i40e_status_code i40e_aq_release_resource(struct i40e_hw *hw, enum i40e_aq_resources_ids resource, -- 2.43.5