[PATCH v1] net/mlx5: fix wrong counter in non-termination meter

Raslan Darawsheh rasland at nvidia.com
Thu Apr 14 09:34:19 CEST 2022


Hi,

> -----Original Message-----
> From: Shun Hao <shunh at nvidia.com>
> Sent: Wednesday, April 6, 2022 11:54 AM
> 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>;
> stable at dpdk.org
> Subject: [PATCH v1] net/mlx5: fix wrong counter in non-termination meter
> 
> In RTE flow, if a counter action is before a meter which has
> non-termination policy, the counter value only includes packets not
> being dropped.
> 
> This patch fixes this issue by differentiating the order of counter and
> non-termination meter:
> 1. counter + meter, counts all packets hitting this flow.
> 2. meter + counter, only counts packets not being dropped.
> 
> Fixes: 51ec04dc7bcf ("net/mlx5: connect meter policy to created flows")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Shun Hao <shunh at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list