Commit 0e8fd74d authored by Victor Raj's avatar Victor Raj Committed by Jeff Kirsher
Browse files

ice: Fix added in VSI supported nodes calc



VSI supported nodes are calculated in order to add the VSI parent or
intermediate nodes to the scheduler tree. If one of the node in below
layers (from VSI layer) has space to add the new VSI or intermediate node
above that layer then it's not required to continue the calculation further
for below layers.

Signed-off-by: default avatarVictor Raj <victor.raj@intel.com>
Reviewed-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Signed-off-by: default avatarAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 5ed5d316
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1344,8 +1344,13 @@ ice_sched_calc_vsi_support_nodes(struct ice_hw *hw,
				node = node->sibling;
			}

			/* tree has one intermediate node to add this new VSI.
			 * So no need to calculate supported nodes for below
			 * layers.
			 */
			if (node)
				break;
			/* all the nodes are full, allocate a new one */
			if (!node)
			num_nodes[i]++;
		}
}