net/ice: clear QoS bandwidth on DCF close
authorTing Xu <ting.xu@intel.com>
Thu, 15 Jul 2021 02:16:42 +0000 (10:16 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 21 Jul 2021 23:55:44 +0000 (01:55 +0200)
commit775a25a372f561e5484d9299cf21597b5b54b65a
tree9a94737614c1de4d5e1fb0ea98dcafb371be54fa
parentda7a5c14062ef48e2cbec1959e6fe89975498cfd
net/ice: clear QoS bandwidth on DCF close

When closing DCF, the bandwidth limit configured for VFs by DCF is not
cleared correctly. The configuration will still take effect when DCF starts
again, if VFs are not re-allocated. This patch cleared VFs bandwidth limit
when DCF closes, and DCF needs to re-configure bandwidth for VFs when it
starts next time.

Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF")

Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf.c
drivers/net/ice/ice_dcf.h
drivers/net/ice/ice_dcf_sched.c