net/ice: fix TM hierarchy commit flag reset
authorTing Xu <ting.xu@intel.com>
Thu, 21 Oct 2021 05:54:07 +0000 (05:54 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 21 Oct 2021 11:32:26 +0000 (13:32 +0200)
commitf5ec6a3a198747e30624fd3a8cd29b1deb5cbbf9
tree6564774cf20d1b64e60c7043c92e974a4db83075
parentd1c7029a529e678b15454068f47d95d347cc3b8b
net/ice: fix TM hierarchy commit flag reset

After DCF commits TM hierarchy configuration, the commit flag is set to
avoid duplicated commit. But the flag is not reset after device stop,
which prevents the update of hierarchy configuration unless close the
device. It is not reasonable. This patch fix to reset the commit flag
after device stop. Then users can delete and add nodes to commit a new
TM hierarchy configuration.

Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF")
Cc: stable@dpdk.org
Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf_ethdev.c
drivers/net/ice/ice_dcf_sched.c