mbox series

[0/2] net/mlx5: fix counter object leaks

Message ID 20230627082746.2466304-1-dsosnowski@nvidia.com (mailing list archive)
Headers
Series net/mlx5: fix counter object leaks |

Message

Dariusz Sosnowski June 27, 2023, 8:27 a.m. UTC
  This patch series fixes the issue where after a long cycle of
inserting/deleting flow rules using COUNT actions,
mlx5_hws_cnt_pool_get() started returning either -EAGAIN or -ENOENT.
Root cause of the issue was the fact that some counter
objects were not properly returned to the shared counter pool.

Dariusz Sosnowski (2):
  net/mlx5: fix queue used to deallocate counter
  net/mlx5: fix counter allocation from shared pool

 drivers/net/mlx5/mlx5_flow_hw.c | 14 +++++++++-----
 drivers/net/mlx5/mlx5_hws_cnt.h | 17 +++++++++++++++++
 2 files changed, 26 insertions(+), 5 deletions(-)
  

Comments

Raslan Darawsheh July 2, 2023, 2:41 p.m. UTC | #1
Hi,

> -----Original Message-----
> From: Dariusz Sosnowski <dsosnowski@nvidia.com>
> Sent: Tuesday, June 27, 2023 11:28 AM
> To: Matan Azrad <matan@nvidia.com>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; Ori Kam <orika@nvidia.com>; Suanming Mou
> <suanmingm@nvidia.com>
> Cc: dev@dpdk.org
> Subject: [PATCH 0/2] net/mlx5: fix counter object leaks
> 
> This patch series fixes the issue where after a long cycle of inserting/deleting
> flow rules using COUNT actions,
> mlx5_hws_cnt_pool_get() started returning either -EAGAIN or -ENOENT.
> Root cause of the issue was the fact that some counter objects were not
> properly returned to the shared counter pool.
> 
> Dariusz Sosnowski (2):
>   net/mlx5: fix queue used to deallocate counter
>   net/mlx5: fix counter allocation from shared pool
> 
>  drivers/net/mlx5/mlx5_flow_hw.c | 14 +++++++++-----
> drivers/net/mlx5/mlx5_hws_cnt.h | 17 +++++++++++++++++
>  2 files changed, 26 insertions(+), 5 deletions(-)
> 
> --
> 2.25.1

Series applied to next-net-mlx,
Added missing Cc stable@dpdk.org

Kindest regards,
Raslan Darawsheh