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 AD21B45BB4; Wed, 23 Oct 2024 18:28:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C933942E9B; Wed, 23 Oct 2024 18:28:01 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id AFB9540B97 for ; Wed, 23 Oct 2024 18:27:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729700879; x=1761236879; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=i9g9TXMMtiJD1DiYTUMFotC7v5J1KnwqTTaUlCZHgVc=; b=foDr2hkUANBcEy+pvW7pCSNrNRaTUPmYS/UIol5C2bHHtVFbre+nsiu5 SzFXDkBYCrTFtsE06+/SL1fzYp01/xLqV6hGCxxMZnjyY8JX60yTJiQ8/ DGQxQ+77FjcesaBcbgJTYk8E/OHxuFb5HiJL2NGu5CAb0ZI9PjploafEN u2PdXqtFsUMQcoPTXHJlFEuIlxMJK6HBPequqKdTPNFefqA8rzfPaCXii tGNvrX7hF25/XxY926lAT6gOpX0Jfb/1fRJX3+yJLbI/VZqNo62gbhc7Z B6kvp1r24evnC10PZ1+9b0D6S1t6tWzL+ypK5qOimFK8x9Z5JHRK3HwhK w==; X-CSE-ConnectionGUID: aIdyp51bQR6GO/88LFMLvA== X-CSE-MsgGUID: 69YbvdSYRlCc0NLxIW8jrg== X-IronPort-AV: E=McAfee;i="6700,10204,11234"; a="29521275" X-IronPort-AV: E=Sophos;i="6.11,226,1725346800"; d="scan'208";a="29521275" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2024 09:27:58 -0700 X-CSE-ConnectionGUID: w1FpJoDITjaftYNAyddE/w== X-CSE-MsgGUID: sWle/9kPRSuYRhpGiqpLAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,226,1725346800"; d="scan'208";a="103583885" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa002.fm.intel.com with ESMTP; 23 Oct 2024 09:27:57 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH v4 2/5] net/ice/base: make context alloc function non-static Date: Wed, 23 Oct 2024 17:27:33 +0100 Message-ID: <20241023162747.453267-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241023162747.453267-1-bruce.richardson@intel.com> References: <20240807093407.452784-1-bruce.richardson@intel.com> <20241023162747.453267-1-bruce.richardson@intel.com> 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 The function "ice_alloc_lan_q_ctx" will be needed by the driver code, so make it non-static. Signed-off-by: Bruce Richardson --- drivers/net/ice/base/ice_sched.c | 2 +- drivers/net/ice/base/ice_sched.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_sched.c b/drivers/net/ice/base/ice_sched.c index 9608ac7c24..1f520bb7c0 100644 --- a/drivers/net/ice/base/ice_sched.c +++ b/drivers/net/ice/base/ice_sched.c @@ -570,7 +570,7 @@ ice_sched_suspend_resume_elems(struct ice_hw *hw, u8 num_nodes, u32 *node_teids, * @tc: TC number * @new_numqs: number of queues */ -static int +int ice_alloc_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs) { struct ice_vsi_ctx *vsi_ctx; diff --git a/drivers/net/ice/base/ice_sched.h b/drivers/net/ice/base/ice_sched.h index 9f78516dfb..09d60d02f0 100644 --- a/drivers/net/ice/base/ice_sched.h +++ b/drivers/net/ice/base/ice_sched.h @@ -270,4 +270,7 @@ int ice_sched_replay_q_bw(struct ice_port_info *pi, struct ice_q_ctx *q_ctx); int ice_sched_cfg_node_bw_alloc(struct ice_hw *hw, struct ice_sched_node *node, enum ice_rl_type rl_type, u16 bw_alloc); + +int +ice_alloc_lan_q_ctx(struct ice_hw *hw, u16 vsi_handle, u8 tc, u16 new_numqs); #endif /* _ICE_SCHED_H_ */ -- 2.43.0