DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/ice: remove unreachable DCF scheduler branch
@ 2026-09-14 10:03 Artem Novikov
  2026-09-14 11:18 ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Artem Novikov @ 2026-09-14 10:03 UTC (permalink / raw)
  To: bruce.richardson, anatoly.burakov
  Cc: dev, naa, rrv, lvc-project, ting.xu, stable

Non-leaf node validation rejects any non-NULL WFQ weight mode before
checking the SP priority count. Therefore the later else-if branch
cannot be reached, because wfq_weight_mode is guaranteed to be NULL at
that point.

Remove the dead branch to avoid keeping an impossible validation path in
the DCF scheduler parameter checks.

Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF")
Cc: stable@dpdk.org
Cc: ting.xu@intel.com

Signed-off-by: Artem Novikov <naa@amicon.ru>
---
 drivers/net/intel/ice/ice_dcf_sched.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/net/intel/ice/ice_dcf_sched.c b/drivers/net/intel/ice/ice_dcf_sched.c
index 795b6e683d..5895407331 100644
--- a/drivers/net/intel/ice/ice_dcf_sched.c
+++ b/drivers/net/intel/ice/ice_dcf_sched.c
@@ -188,12 +188,6 @@ ice_dcf_node_param_check(struct ice_dcf_hw *hw, uint32_t node_id,
 				RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SP_PRIORITIES;
 			error->message = "SP priority not supported";
 			return -EINVAL;
-		} else if (params->nonleaf.wfq_weight_mode &&
-			   !(*params->nonleaf.wfq_weight_mode)) {
-			error->type =
-				RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE;
-			error->message = "WFP should be byte mode";
-			return -EINVAL;
 		}
 
 		return 0;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net/ice: remove unreachable DCF scheduler branch
  2026-09-14 10:03 [PATCH] net/ice: remove unreachable DCF scheduler branch Artem Novikov
@ 2026-09-14 11:18 ` Bruce Richardson
  2026-10-05 15:20   ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2026-09-14 11:18 UTC (permalink / raw)
  To: Artem Novikov; +Cc: anatoly.burakov, dev, rrv, lvc-project, ting.xu, stable

On Mon, Sep 14, 2026 at 01:03:50PM +0300, Artem Novikov wrote:
> Non-leaf node validation rejects any non-NULL WFQ weight mode before
> checking the SP priority count. Therefore the later else-if branch
> cannot be reached, because wfq_weight_mode is guaranteed to be NULL at
> that point.
> 
> Remove the dead branch to avoid keeping an impossible validation path in
> the DCF scheduler parameter checks.
> 
> Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF")
> Cc: stable@dpdk.org
> Cc: ting.xu@intel.com
> 
> Signed-off-by: Artem Novikov <naa@amicon.ru>
> ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

>  drivers/net/intel/ice/ice_dcf_sched.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/net/intel/ice/ice_dcf_sched.c b/drivers/net/intel/ice/ice_dcf_sched.c
> index 795b6e683d..5895407331 100644
> --- a/drivers/net/intel/ice/ice_dcf_sched.c
> +++ b/drivers/net/intel/ice/ice_dcf_sched.c
> @@ -188,12 +188,6 @@ ice_dcf_node_param_check(struct ice_dcf_hw *hw, uint32_t node_id,
>  				RTE_TM_ERROR_TYPE_NODE_PARAMS_N_SP_PRIORITIES;
>  			error->message = "SP priority not supported";
>  			return -EINVAL;
> -		} else if (params->nonleaf.wfq_weight_mode &&
> -			   !(*params->nonleaf.wfq_weight_mode)) {
> -			error->type =
> -				RTE_TM_ERROR_TYPE_NODE_PARAMS_WFQ_WEIGHT_MODE;
> -			error->message = "WFP should be byte mode";
> -			return -EINVAL;
>  		}
>  
>  		return 0;
> -- 
> 2.43.0
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net/ice: remove unreachable DCF scheduler branch
  2026-09-14 11:18 ` Bruce Richardson
@ 2026-10-05 15:20   ` Bruce Richardson
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2026-10-05 15:20 UTC (permalink / raw)
  To: dev; +Cc: anatoly.burakov, stable

On Mon, Sep 14, 2026 at 12:18:11PM +0100, Bruce Richardson wrote:
> On Mon, Sep 14, 2026 at 01:03:50PM +0300, Artem Novikov wrote:
> > Non-leaf node validation rejects any non-NULL WFQ weight mode before
> > checking the SP priority count. Therefore the later else-if branch
> > cannot be reached, because wfq_weight_mode is guaranteed to be NULL at
> > that point.
> > 
> > Remove the dead branch to avoid keeping an impossible validation path in
> > the DCF scheduler parameter checks.
> > 
> > Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF")
> > Cc: stable@dpdk.org
> > Cc: ting.xu@intel.com
> > 
> > Signed-off-by: Artem Novikov <naa@amicon.ru>
> > ---
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied to dpdk-next-net-intel.
Thanks,
/Bruce

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-05 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14 10:03 [PATCH] net/ice: remove unreachable DCF scheduler branch Artem Novikov
2026-09-14 11:18 ` Bruce Richardson
2026-10-05 15:20   ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox