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 CBAE645BB4; Wed, 23 Oct 2024 18:56:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DFA9B42ED2; Wed, 23 Oct 2024 18:56:11 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by mails.dpdk.org (Postfix) with ESMTP id A723542ED0 for ; Wed, 23 Oct 2024 18:56:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729702570; x=1761238570; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=i9g9TXMMtiJD1DiYTUMFotC7v5J1KnwqTTaUlCZHgVc=; b=a7tp0NyXs6sy2dwsXyozLc7cKZs7w9hQs8eKmyXorfC9XCOAxwFQteV5 dcnmBhpZodBpasrxz2iQEta6zb9zUatwBPICJw4gKfE3i8wHVZjwZq5Hn 7OYCnLSXmWwKkBmMOIa0SH5OwfwVDXvqeXGyrQVQkUh99T37Qf5iP0CTA 7eSZqu4FC1FFnl7rVUVaU9WJYN8u6ZErK6rFT/f03hCCwf4yf2ZZtT4Bl L85BRQOpG6BpJ9mRiaKg4rHz4IiDiGfyxwWZ0Nk3Hkj9GZ/T2NqFnAJ/L sn9xdH1W0cPIesuZ+VYCigeRCSpRPklOUQsiK9kxLFjvVD4UQD8Zo/gTV Q==; X-CSE-ConnectionGUID: 7sE0JnMbRrKVg2jsuUyCAg== X-CSE-MsgGUID: 7wluayIQTyi2JVLGi5bT0Q== X-IronPort-AV: E=McAfee;i="6700,10204,11234"; a="32159398" X-IronPort-AV: E=Sophos;i="6.11,226,1725346800"; d="scan'208";a="32159398" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2024 09:56:09 -0700 X-CSE-ConnectionGUID: LJXF5kmpRDqrQsj5LzPItQ== X-CSE-MsgGUID: YmDkYIUPSCuHcYSJHrkIjg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,226,1725346800"; d="scan'208";a="85073318" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa005.jf.intel.com with ESMTP; 23 Oct 2024 09:56:06 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH v5 2/5] net/ice/base: make context alloc function non-static Date: Wed, 23 Oct 2024 17:55:37 +0100 Message-ID: <20241023165540.893269-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241023165540.893269-1-bruce.richardson@intel.com> References: <20240807093407.452784-1-bruce.richardson@intel.com> <20241023165540.893269-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