From patchwork Wed Aug 7 09:47:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 142997 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ACBC84575B; Wed, 7 Aug 2024 11:48:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 099EE427E7; Wed, 7 Aug 2024 11:47:30 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 4513B42792 for ; Wed, 7 Aug 2024 11:47:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723024044; x=1754560044; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AnuurfSOY/UYpOqgy9U+/yVVqMHFyHLQR9wqWwlXt+M=; b=duUQNs7exd+7Ik4GzfY9Qu73Kp9tP/yrnYz82RkvLezJdz76dK0/QhUg RJxrR7WYTDmoYTWKTrnNNUvr3V9wDRxVqZsybKWd8QHGvFFnpsTn1l5FB 8cXY3vNGeqxRo8rqDccLJ2712vC3P3xYbhCek2t3nJBzVCSCLHrBynq7F uedpuUaMa3a7uYI+g4K9f2XCIl2ofnxqz+Fmby9nilfxrbg33NixdBohq Oo+4HjrMEJ9IUY6yB0wr2I5USPl/p7AIDj2j7a0z3TQqw6FTqDihZOsX9 FYwR0eWZxWzLhODDLUYf9fN+zmz1TShRRZ/zg/w+m3yNfVCEV8OyIwa/k A==; X-CSE-ConnectionGUID: XcN9eHLHT76f2RVD+q5+vA== X-CSE-MsgGUID: eI0lToqeSGa5bUGD43FVFQ== X-IronPort-AV: E=McAfee;i="6700,10204,11156"; a="21257948" X-IronPort-AV: E=Sophos;i="6.09,269,1716274800"; d="scan'208";a="21257948" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2024 02:47:23 -0700 X-CSE-ConnectionGUID: e1Z3G5guQg+72yupk4gKhQ== X-CSE-MsgGUID: rNb8wIs6SZKQjrH45XjF2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,269,1716274800"; d="scan'208";a="87467396" Received: from silpixa00400562.ir.intel.com (HELO silpixa00401385.ir.intel.com) ([10.237.214.39]) by orviesa002.jf.intel.com with ESMTP; 07 Aug 2024 02:47:22 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH v2 11/15] net/ice/base: make functions non-static Date: Wed, 7 Aug 2024 10:47:02 +0100 Message-ID: <20240807094706.459822-12-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240807094706.459822-1-bruce.richardson@intel.com> References: <20240807093407.452784-1-bruce.richardson@intel.com> <20240807094706.459822-1-bruce.richardson@intel.com> MIME-Version: 1.0 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_ */