net/ice/base: add sibling head to parse nodes
authorLeyi Rong <leyi.rong@intel.com>
Wed, 19 Jun 2019 15:17:57 +0000 (23:17 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jun 2019 18:31:48 +0000 (20:31 +0200)
commit39e30e38c46045c85717145c00763dd8d97e6a9f
tree52df1865c101fc531e6186623e88ddf8f5ed510c
parentc419e75cd9f8cdcba9bc392f88c9a7842ece1a44
net/ice/base: add 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.

Added a sibling head pointer to point the first node of each layer
per TC. This helps the traverse easy and quicker and also removed the
recursive, complexity of the code.

Signed-off-by: Victor Raj <victor.raj@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_sched.c
drivers/net/ice/base/ice_type.h