net/ice/base: fix issues around move nodes
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 Aug 2020 05:39:35 +0000 (13:39 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
commit252deadabce2c6d3cb2d3307a7fac8c1ea62b6c5
tree83ff5976402e0656f23443f9e6d4a9b7511b8055
parent39ecbb6be0e3851482aeda3bfc1bf732264a3dfc
net/ice/base: fix issues around move nodes

1. Fixed the max children check when moving the last(8th) children. This
   allows the parent node to hold 8 children instead of 7.
2. Check whether the VSI is already part of the given aggregator subtree
   before moving it.

Fixes: 29a0c11489ef ("net/ice/base: clean code")
Cc: stable@dpdk.org
Signed-off-by: Victor Raj <victor.raj@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_sched.c