forked from Minki/linux
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: Victor Raj <victor.raj@intel.com> Reviewed-by: Bruce Allan <bruce.w.allan@intel.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
5ed5d316d9
commit
0e8fd74df2
@ -1344,9 +1344,14 @@ 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]++;
|
||||
num_nodes[i]++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user