On Mon, Nov 16, 2026 at 11:14:50AM +0000, Ciara Loftus wrote:
> The uint8_t 5-tuple mask is promoted to a signed int before being
> shifted by IXGBE_FTQF_5TUPLE_MASK_SHIFT (25). The result does not fit in
> 32 bits, which is undefined behaviour for a signed type. In practice it is
> harmless since the bit that is lost does not contain any useful
> information. Regardless it should be fixed instead of relying on the
> undefined behaviour.
>
> Fix it by casting the mask to uint32_t before the shift. For an unsigned
> type the result keeps only the low 32 bits, so the programmed value is
> unchanged.
>
> Coverity issue: 507466
>
> Fixes: 76db0ac63987 ("ixgbe: add filters")
> Cc: [email protected]
>
> Signed-off-by: Ciara Loftus <[email protected]>
> ---
> drivers/net/intel/ixgbe/ixgbe_ethdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Acked-by: Bruce Richardson <[email protected]>
Applied to dpdk-next-net-intel.
/Bruce