]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit918841ee8f175536028274931465ef7898abeaf5
treec03a24a32c0c6a550b493215b5b7873660b81f60
parent0329f6e735b3a0fc74cf362b71b32d260706a5d8
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