[dpdk-dev] [PATCH v3] net/mlx5: fix incorrect group value of sample suffix flow

Slava Ovsiienko viacheslavo at nvidia.com
Sun Nov 1 17:41:14 CET 2020


> -----Original Message-----
> From: Jiawei Wang <jiaweiw at nvidia.com>
> Sent: Sunday, November 1, 2020 8:50
> To: Slava Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; Ori Kam <orika at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>
> Subject: [PATCH v3] net/mlx5: fix incorrect group value of sample suffix flow
> 
> mlx5 PMD splited the sampling flow into prefix flow and suffix flow. On the
> sample action translation function, the scaled group value of suffix flow be
> attached into sample object and saved into sample resource.
> 
> mlx5 PMD fetched the group value from the sample resource to create the
> suffix flow. On the mlx5_flow_group_to_table function the group value of
> suffix flow was scaled with table factor again and translated into HW table.
> That caused the incorrect group value of sample suffix flow.
> 
> The fix introduces a 'skip_scale' flag and sets it to 1 for the sample suffix flow
> creation. On the mlx5_flow_group_to_table function skips the scale with table
> factor to use the correct group value.
> 
> Fixes: dc67aa6 ("net/mlx5: implement tunnel offload API")
> 
> Signed-off-by: Jiawei Wang <jiaweiw at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>



More information about the dev mailing list