net/ice: fix DCF be configured with bandwidth limit
PATCH 1/1 net/ice: fix DCF be configured with bandwidth limit
When configuring QoS Tx bandwidth limit, DCF (VF0) is taken into account and its bandwidth may be configured as well. Since DCF does not handle traffic, it is no need to configure its bandwidth, which could even have negative influence on other VFs bandwidth configuration. This patch just skips the step to configure DCF bandwidth.
Fixes 3a5a5bfc618b ("net/ice: support QoS config VF bandwidth in DCF")
Signed-off-by Ting Xu <[email protected]>
--- drivers/net/ice/ice_dcf_sched.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/ice/ice_dcf_sched.c +4 -1
@@ -690,7 +690,10 @@ static int ice_dcf_hierarchy_commit(struct rte_eth_dev *dev,VIRTCHNL_DCF_BW_PIR |VIRTCHNL_DCF_BW_CIR ; } -for (vf_id =0 ; vf_id < hw->num_vfs; vf_id++) { +/* start with VF1, skip VF0 since DCF does not need to configure +* bandwidth for itself +*/ +for (vf_id =1 ; vf_id < hw->num_vfs; vf_id++) { num_elem =0 ; vf_bw->vf_id = vf_id; vf_bw->node_type =VIRTCHNL_DCF_TARGET_VF_BW ;
Signature · 1 line
2.17.1