mbox

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

Message ID 20230627082746.2466304-1-dsosnowski@nvidia.com (mailing list archive)
Headers

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(-)