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 A761445501; Wed, 26 Jun 2024 14:00:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 930FD42E6E; Wed, 26 Jun 2024 13:55:59 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 6565042E95 for ; Wed, 26 Jun 2024 13:44: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=1719402266; x=1750938266; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=X94Oy5i16hy3+rV8w6EIa+LhycQF+nPTQOEDaTxkx3A=; b=RxD8CYmxanFd4Ya32BNP26pridicNlKwc1f3LPVraZ6qLrms8Dwoxu0i EN5zXwOjwoytc8v/0PkFB41EKlGgCYjxnlu9ajFkOdbJR0pwom/xSJpFc wIvcPdYOTzD8WHKPqBd0+XrWJrTrBc5mb0SBzgHGaPS4RKsIv1u7fWRaz YvFIkJOhAKiS9YJvu5T92RWO3iPzzRtCt3LTZ47ow48zt05a27s5bjPpC BQVpC5ocDujMibOMziSFScbg/l2YyWCT1oX3zn0kTrFTtuAYE7JS0AbNo TFST+mc/bcgJ2nogWo6QKx039Yx5d5Bgf5I35NSNsLNt6f4cm0bDU6Eap Q==; X-CSE-ConnectionGUID: n/N7fQXYReakb1uT3qMlrw== X-CSE-MsgGUID: PLmQNGebRlGlhGPjsOYtuw== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979437" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979437" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:44:26 -0700 X-CSE-ConnectionGUID: xCS95kSaTOOIvaB01HbFRA== X-CSE-MsgGUID: rKulik+6SuaaMJRYXTSyww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43873955" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:44:25 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Stefan Wegrzyn , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 051/103] net/ice/base: make ice_clear_vsi_q_ctx() non-static Date: Wed, 26 Jun 2024 12:41:39 +0100 Message-ID: <3a108b2b933ba9fedc7d1e47da4b058a281795b8.1719401848.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 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: Stefan Wegrzyn Driver tools need to call ice_clear_vsi_q_ctx() from outside of ice_switch.c so the function had to become non-static. Signed-off-by: Stefan Wegrzyn Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_switch.c | 2 +- drivers/net/ice/base/ice_switch.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 10121d848f..04b76840dd 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -3120,7 +3120,7 @@ ice_save_vsi_ctx(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi) * @hw: pointer to the HW struct * @vsi_handle: VSI handle */ -static void ice_clear_vsi_q_ctx(struct ice_hw *hw, u16 vsi_handle) +void ice_clear_vsi_q_ctx(struct ice_hw *hw, u16 vsi_handle) { struct ice_vsi_ctx *vsi; u8 i; diff --git a/drivers/net/ice/base/ice_switch.h b/drivers/net/ice/base/ice_switch.h index ec4a63819c..41004a38b1 100644 --- a/drivers/net/ice/base/ice_switch.h +++ b/drivers/net/ice/base/ice_switch.h @@ -456,6 +456,7 @@ int ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, struct ice_sq_cd *cd); struct ice_vsi_ctx *ice_get_vsi_ctx(struct ice_hw *hw, u16 vsi_handle); +void ice_clear_vsi_q_ctx(struct ice_hw *hw, u16 vsi_handle); void ice_clear_all_vsi_ctx(struct ice_hw *hw); int ice_aq_get_vsi_params(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, -- 2.43.0