]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Modify recursive way of adding nodes
authorVictor Raj <victor.raj@intel.com>
Thu, 25 Mar 2021 22:35:05 +0000 (15:35 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 8 Apr 2021 00:09:15 +0000 (17:09 -0700)
commitacc62df490cd2eff7d3e3d95c6b6ac59fa9ab581
treebc2c8d65011d23f43aabec1d334a9cf878f3d445
parenta97f32eda1fb60b1566215ce1cf5a5339a9d0683
ice: Modify recursive way of adding nodes

Remove the recursive way of adding the nodes to the layer in order
to reduce the stack usage. Instead the algorithm is modified to use
a while loop.

The previous code was scanning recursively the nodes horizontally.
The total stack consumption will be based on number of nodes present
on that layer. In some cases it can consume more stack.

Signed-off-by: Victor Raj <victor.raj@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_sched.c