net/ice: fix check for QoS in DCF
authorTing Xu <ting.xu@intel.com>
Thu, 8 Jul 2021 02:32:25 +0000 (10:32 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 9 Jul 2021 03:05:19 +0000 (05:05 +0200)
commit3442a8d66a147eb64a0f348d0741f2a7830dfda6
tree05f9b33934bb955c29a852c8945b1498d938ee3a
parent00af17037d99fbe626d43b8b594544cf2c8599ce
net/ice: fix check for QoS in DCF

This patch fixed some unreasonable error check. Move all checks into one
helper function before configuring. Skip the check for DCF (VF0).

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_sched.c