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 F3C054575B; Wed, 7 Aug 2024 11:35:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B68AA41101; Wed, 7 Aug 2024 11:34:33 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id 8C06A40E49 for ; Wed, 7 Aug 2024 11:34:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723023265; x=1754559265; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AnuurfSOY/UYpOqgy9U+/yVVqMHFyHLQR9wqWwlXt+M=; b=HLN2XW2g0DBQ+NIbHd+n6RqW7BGkKIEg3/6xdmVZOZFCDn6qlsYDNwcE PutMx0zFQDsfAPMTfSHBKhPu+Fr6Oe5knDn7PCrBzd4DBOHsxx6wA1zlv VGhhSlP1gjNDasG3WXbOf2WZNIRKEzbAJp3gwswtNQL5tGwqxxmqPwVpW 0UnQsAdocmi6Fz/kfUdKck0ycsdaaKN+OGq9DE1vJVROMKZelfdDz02Vp Ww81zlihio7NdIZdOUQDw4N2a/MIfkeM+Hm2SW8HKCIwwgjR49iv8NY/b qVDls/kU8l//u6fCawMws5vNZqVzk8JOvUazGrFvAhLRkRYrQqfd1w63W Q==; X-CSE-ConnectionGUID: xi4Pa1J/TCaJtlOYi0LIfA== X-CSE-MsgGUID: jBK5bb4KSWmid56LGvhwNw== X-IronPort-AV: E=McAfee;i="6700,10204,11156"; a="12897961" X-IronPort-AV: E=Sophos;i="6.09,269,1716274800"; d="scan'208";a="12897961" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2024 02:34:24 -0700 X-CSE-ConnectionGUID: aJNYa/skTtavdmU+j08LOw== X-CSE-MsgGUID: n9Yr51L7Sp2IoOqoNFOlMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,269,1716274800"; d="scan'208";a="87731030" Received: from silpixa00400562.ir.intel.com (HELO silpixa00401385.ir.intel.com) ([10.237.214.39]) by fmviesa001.fm.intel.com with ESMTP; 07 Aug 2024 02:34:24 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 11/15] net/ice/base: make functions non-static Date: Wed, 7 Aug 2024 10:34:03 +0100 Message-ID: <20240807093407.452784-12-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240807093407.452784-1-bruce.richardson@intel.com> References: <20240807093407.452784-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 We will need to allocate more lanq contexts after a scheduler rework, so make that function non-static so accessible outside the file. For similar reasons, make the function to add a Tx scheduler node non-static Signed-off-by: Bruce Richardson --- drivers/net/ice/base/ice_sched.c | 2 +- drivers/net/ice/base/ice_sched.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_sched.c b/drivers/net/ice/base/ice_sched.c index f7d5f8f415..d88b836c38 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..c7eb794963 100644 --- a/drivers/net/ice/base/ice_sched.h +++ b/drivers/net/ice/base/ice_sched.h @@ -270,4 +270,12 @@ 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_sched_add_elems(struct ice_port_info *pi, struct ice_sched_node *tc_node, + struct ice_sched_node *parent, u8 layer, u16 num_nodes, + u16 *num_nodes_added, u32 *first_node_teid, + struct ice_sched_node **prealloc_nodes); +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