Re: [PATCH iwl-next 1/10] ice: translate FW to SW for max num TCs encoding

Simon Horman
2026-04-14T08:44:20Z

On Fri, Apr 10, 2026 at 09:49:12AM +0200, Aleksandr Loktionov wrote:
> From: Dave Ertman <david.m.ertman@intel.com>
>
> The FW uses a 3-bit field in a TLV to represent the maximum number of
> Traffic Classes supported per interface. Since the maximum value is 8,
> and at least one TC must be supported, the encoding uses bit values of
> 000 to represent 8 TCs.
>
> The driver currently does not translate this value and reports 0 max TCs
> to the DCBNL interface instead of 8.
>
> Add a translation when interfacing with the FW to use 0x0 as the value
> for 8 max TCs.
>
> Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
> Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>

I'm not sure if you want to reconsider this as a bug fix.
But the code changes look good to me.

Reviewed-by: Simon Horman <horms@kernel.org>