[PATCH v5 06/27] net/i40e: use unsigned types for queue comparisons
Medvedkin, Vladimir
vladimir.medvedkin at intel.com
Tue Feb 17 18:09:32 CET 2026
Acked-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
On 2/17/2026 12:13 PM, Anatoly Burakov wrote:
> Currently, when we compare queue numbers against maximum traffic class
> value of 64, we do not use unsigned values, which results in compiler
> warning when attempting to compare `I40E_MAX_Q_PER_TC` to an unsigned
> value. Make it unsigned 16-bit, and adjust callers to use correct types.
> As a consequence, `i40e_align_floor` now returns unsigned value as well -
> this is correct, because nothing about that function implies signed usage
> being a valid use case.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
> drivers/net/intel/i40e/i40e_ethdev.c | 11 ++++++-----
> drivers/net/intel/i40e/i40e_ethdev.h | 8 ++++----
> drivers/net/intel/i40e/i40e_hash.c | 4 ++--
> 3 files changed, 12 insertions(+), 11 deletions(-)
>
<snip>
--
Regards,
Vladimir
More information about the dev
mailing list