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 8578145BC0; Tue, 29 Oct 2024 18:02:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C7D542EF3; Tue, 29 Oct 2024 18:02:12 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by mails.dpdk.org (Postfix) with ESMTP id 061FE42EE8 for ; Tue, 29 Oct 2024 18:02:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730221329; x=1761757329; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qVaBIJnjkydkwq1NfMkGvmJ2sY48wp4Bbli7r0Yk+c0=; b=ajM/WcyURm5mJ8xP/etQX1pyc24uRt5aBQ2GuamLxrRJrN9SYU10zoxj f8z0rxb18rE8aVj8HTTHBRoKVyunMHGmuVwUhUduIrPXkRtcS2KcmcwpA YvQbpzSt1yMQpSAyN9Tw9992ZVVI1bHf2LPNjJClpz+q9ddI3Qb0ZjkiQ ZU24cdfqly9P86VA9wgcHoqe1gZOyMKmLeCL51J9/J5Ck/C/AKaTodJHI nYOoNRoIOBCGUurSd0PFQTm3UKGT9kTv0n4hganisCjiZzA2q3Ftx6g9m mF9moQCeKcQIjpDZ/ItnwPdhtfa3H++yW+NPOn75o+XHhBrRFn8Bp2yvY A==; X-CSE-ConnectionGUID: CAtHVXFqRouSrVL/wShlIg== X-CSE-MsgGUID: DSQPY2H1RdSicch9GkydzQ== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="40977539" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="40977539" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2024 10:02:08 -0700 X-CSE-ConnectionGUID: HZ6KYyjqQCOIQwdiLGxkyg== X-CSE-MsgGUID: HKgGKyrQQsavudHoKYhblg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,241,1725346800"; d="scan'208";a="119494642" Received: from silpixa00400496-oob.ir.intel.com (HELO silpixa00401385.ir.intel.com) ([10.237.214.43]) by orviesa001.jf.intel.com with ESMTP; 29 Oct 2024 10:02:08 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: vladimir.medvedkin@intel.com, Bruce Richardson Subject: [PATCH v6 2/5] net/ice/base: make context alloc function non-static Date: Tue, 29 Oct 2024 17:01:54 +0000 Message-ID: <20241029170157.1390724-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029170157.1390724-1-bruce.richardson@intel.com> References: <20240807093407.452784-1-bruce.richardson@intel.com> <20241029170157.1390724-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 Acked-by: Vladimir Medvedkin --- 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