[PATCH 22.11 3/3] net/mlx5: fix flex item header length field translation

Luca Boccassi bluca at debian.org
Thu Oct 31 15:34:55 CET 2024


On Thu, 31 Oct 2024 at 12:45, Viacheslav Ovsiienko
<viacheslavo at nvidia.com> wrote:
>
> [ upstream commit net/mlx5: fix flex item header length field translation ]
>
> There are hardware imposed limitations on the header length
> field description for the mask and shift combinations in the
> FIELD_MODE_OFFSET mode.
>
> The patch updates:
>   - parameter check for FIELD_MODE_OFFSET for the header length
>     field
>   - check whether length field crosses dword boundaries in header
>   - correct mask extension to the hardware required width 6-bits
>   - correct adjusting the mask left margin offset, preventing
>     dword offset
>
> Fixes: b293e8e49d78 ("net/mlx5: translate flex item configuration")
> Cc: stable at dpdk.org
>
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> ---
>  drivers/net/mlx5/mlx5_flow_flex.c | 112 +++++++++++++++++++-----------
>  1 file changed, 72 insertions(+), 40 deletions(-)

Thanks, all applied


More information about the stable mailing list