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

Dariusz Sosnowski dsosnowski at nvidia.com
Tue Jun 27 10:27:44 CEST 2023


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



More information about the dev mailing list