[dpdk-dev] [PATCH] net/mlx5: fix flow split combined with counter

Raslan Darawsheh rasland at nvidia.com
Thu Jan 21 13:10:26 CET 2021


Hi,

> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Dekel Peled
> Sent: Sunday, January 17, 2021 11:41 AM
> To: Matan Azrad <matan at nvidia.com>; Shahaf Shuler
> <shahafs at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>
> Cc: dev at dpdk.org; stable at dpdk.org
> Subject: [dpdk-dev] [PATCH] net/mlx5: fix flow split combined with counter
> 
> Currently, for a flow containing a count action, if flow is split to
> sub-flows, a new counter will be created for each sub-flow.
> However only the counter created for the last sub-flow will be queried
> on flow query and cleared on flow removal.
> 
> This behavior is wrong, causing a leak of resources.
> Need to create just one counter per flow, and use it for all sub-flows.
> 
> This patch adds the required check to make sure a counter is
> created just once per flow, and used by all sub-flows.
> 
> Fixes: fa2d01c87d2b ("net/mlx5: support flow aging")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dekel Peled <dekelp at nvidia.com>
> 
Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh



More information about the dev mailing list