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 5B4B145B14; Fri, 11 Oct 2024 18:45:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D83A840678; Fri, 11 Oct 2024 18:45:29 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id 4091C40670 for ; Fri, 11 Oct 2024 18:45:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728665126; x=1760201126; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DM1bs1wpWFmaA4ZxrrUoJvi/27SIRrK4MGvmfaL9ZB0=; b=PEL4R/tXJGqekHO/Rfn4P7h3zKMPO+j85xpyQ0hFu8FqAlQtth9vF3Ws 2tpmY/5LxwpK34UfOHvV04NH5tjgNKFWCqRPsA9xPAcEf3fgrpGaYVJTP 1Sd9j49Vw9N5MCfXWniGD7uNBpIvabk/qXrzL81Mnfaaco5hRM/DC7j1F MRndbOKgMDqQ0nKE0Uos4udUkBGoebBEb/Jukq5K4h20dYPtPEaJ1wdIR SuD4tasEWDSwhgdu/QRwKfFkeIEJUKN1mWMSgIL7jwETN+lurpOkD2B+p 66YN5ww0UgST8684CiMMvezhUqLMJzuE7XOE2VPJHN55fU9O6WHxeom2O g==; X-CSE-ConnectionGUID: qT+dNwP2TgyQsmo0ZJN0Xw== X-CSE-MsgGUID: oAEXyNn3R0GN1CMI9iMoTA== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="53477062" X-IronPort-AV: E=Sophos;i="6.11,196,1725346800"; d="scan'208";a="53477062" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2024 09:45:26 -0700 X-CSE-ConnectionGUID: PHrj/ec8R6C3K1iTlTc4eA== X-CSE-MsgGUID: 0a7FendARlaZPHwdqKZamQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,196,1725346800"; d="scan'208";a="76609316" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 11 Oct 2024 09:45:25 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 5/9] net/ice/base: set VSI index on newly created nodes Date: Fri, 11 Oct 2024 17:44:55 +0100 Message-ID: <20241011164459.1987538-6-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241011164459.1987538-1-bruce.richardson@intel.com> References: <20241011164459.1987538-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 ice_sched_node type has got a field for the vsi to which the node belongs. This field was not getting set in "ice_sched_add_node", so add a line configuring this field for each node from its parent node. Similarly, when searching for a qgroup node, we can check for each node that the VSI information is correct. Signed-off-by: Bruce Richardson --- drivers/net/ice/base/ice_sched.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_sched.c b/drivers/net/ice/base/ice_sched.c index 1d6dd2af82..45934f9152 100644 --- a/drivers/net/ice/base/ice_sched.c +++ b/drivers/net/ice/base/ice_sched.c @@ -200,6 +200,7 @@ ice_sched_add_node(struct ice_port_info *pi, u8 layer, node->in_use = true; node->parent = parent; node->tx_sched_layer = layer; + node->vsi_handle = parent->vsi_handle; parent->children[parent->num_children++] = node; node->info = elem; return 0; @@ -1575,7 +1576,7 @@ ice_sched_get_free_qparent(struct ice_port_info *pi, u16 vsi_handle, u8 tc, /* make sure the qgroup node is part of the VSI subtree */ if (ice_sched_find_node_in_subtree(pi->hw, vsi_node, qgrp_node)) if (qgrp_node->num_children < max_children && - qgrp_node->owner == owner) + qgrp_node->owner == owner && qgrp_node->vsi_handle == vsi_handle) break; qgrp_node = qgrp_node->sibling; } -- 2.43.0