[Intel-wired-lan] [PATCH S57 02/14] ice: Modify recursive way of adding nodes
Brelinski, TonyX
tonyx.brelinski at intel.com
Wed Mar 31 20:48:39 UTC 2021
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Thursday, March 25, 2021 3:35 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S57 02/14] ice: Modify recursive way of
> adding nodes
>
> From: Victor Raj <victor.raj at intel.com>
>
> 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 at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_sched.c | 130 ++++++++++++---------
> 1 file changed, 77 insertions(+), 53 deletions(-)
Tested-by: Tony Brelinski <tonyx.brelinski at intel.com> A Contingent Worker at Intel
More information about the Intel-wired-lan
mailing list