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 9D8C4457A1; Mon, 12 Aug 2024 17:29:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D81840DDE; Mon, 12 Aug 2024 17:28:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by mails.dpdk.org (Postfix) with ESMTP id 45EBF40B9D for ; Mon, 12 Aug 2024 17:28:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723476516; x=1755012516; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GkONx/JTr0Ryhfm3YU25ux0z6dB+IFvsn9qzX1Ek7Sc=; b=Le9ZXacINHv9vTqmaQi7hA+xKmbtW3zZkE0DVk85rOky4z2DHdz8HXQh /5G3UyNZNWHQyk1f77ZkBZbeBSyta2rfOPgAqP9+c6w+kDpwfEyyoLkIa S+kLKs1kDeb20wim8YDTLEt1mfJ6YGwPhmW6ayYYlLYzXrQi1GpSJhJcp vUtEBWrIVKKuPuVC1caN1WNQicbYgAc23dZF7x4n0ALCkiink8XWdNWKb wSM1f1fjZzMx04kMSXq59I2whiIIAkZQEYYXcoQA7U/eeBuxE5LKXP9nk b3IQ/XI9T/nSd9uDmiNSRX8jGmJYvjEHbui+4DZRxT8PwvbEJVpBK6caY Q==; X-CSE-ConnectionGUID: QbnbE9odQBaJeCw97nHK6Q== X-CSE-MsgGUID: tJw7/ZYaQ+aoXsNhwajwwg== X-IronPort-AV: E=McAfee;i="6700,10204,11162"; a="21743044" X-IronPort-AV: E=Sophos;i="6.09,283,1716274800"; d="scan'208";a="21743044" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2024 08:28:36 -0700 X-CSE-ConnectionGUID: cNg/2E0QRLuiC7ncp42SFA== X-CSE-MsgGUID: L3XiuRoNRbm7WVvZcpzTaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,283,1716274800"; d="scan'208";a="63222558" Received: from silpixa00400562.ir.intel.com (HELO silpixa00401385.ir.intel.com) ([10.237.214.39]) by orviesa004.jf.intel.com with ESMTP; 12 Aug 2024 08:28:35 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH v3 07/16] net/ice/base: set VSI index on newly created nodes Date: Mon, 12 Aug 2024 16:28:06 +0100 Message-ID: <20240812152815.1132697-8-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240812152815.1132697-1-bruce.richardson@intel.com> References: <20240807093407.452784-1-bruce.richardson@intel.com> <20240812152815.1132697-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 f75e5ae599..f6dc5ae173 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; @@ -1581,7 +1582,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