ice: added sibling head to parse nodes
authorVictor Raj <victor.raj@intel.com>
Thu, 25 Jul 2019 09:53:54 +0000 (02:53 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 27 Aug 2019 05:59:00 +0000 (22:59 -0700)
commit2935824873890de1503c0798c20833bb72a6c7c6
treec03a24a32c0c6a550b493215b5b7873660b81f60
parent9e7a5d1746222238712df19ce9833e574d4cac8e
ice: added sibling head to parse nodes

There was a bug in the previous code which never traverses all the
children to get the first node of the requested layer. Add a sibling
head pointer to point the first node of each layer per TC. This helps
traverse easier and quicker and also removes the recursion.

Signed-off-by: Victor Raj <victor.raj@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_sched.c
drivers/net/ethernet/intel/ice/ice_type.h