On Mon, Sep 14, 2026 at 01:10:03PM +0300, Artem Novikov wrote:
> The traffic management API defines leaf WRED parameters as valid only
> when the congestion management mode is WRED. DCF only accepts tail drop,
> but still validates the WRED profile and shared contexts. A tail-drop
> node with a zero-initialized, unused WRED profile is therefore rejected
> unless the application supplies RTE_TM_WRED_PROFILE_ID_NONE.
>
> Compare the mode explicitly against RTE_TM_CMAN_TAIL_DROP and reject
> unsupported modes with a precise error message. Do not validate WRED
> parameters for the supported tail-drop mode.
>
> Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF")
> Cc: [email protected]
>
> Signed-off-by: Artem Novikov <[email protected]>
> ---
> drivers/net/intel/ice/ice_dcf_sched.c | 23 ++---------------------
> 1 file changed, 2 insertions(+), 21 deletions(-)
>
Acked-by: Bruce Richardson <[email protected]>
Applied to dpdk-next-net-intel
/Bruce