]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: HWS, Free unused action STE tables
authorVlad Dogaru <vdogaru@nvidia.com>
Thu, 10 Apr 2025 19:17:41 +0000 (22:17 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:29:16 +0000 (17:29 -0700)
commit864531ca2072c55ff00ba9dfd8c15cf0f576051b
tree666b9f6524c97738fd86b92294454dcebacff420
parent22174f16f1218fc98e374b3653decae54aa481f8
net/mlx5: HWS, Free unused action STE tables

Periodically check for unused action STE tables and free their
associated resources. In order to do this safely, add a per-queue lock
to synchronize the garbage collect work with regular operations on
steering rules.

Signed-off-by: Vlad Dogaru <vdogaru@nvidia.com>
Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Link: https://patch.msgid.link/1744312662-356571-12-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action_ste_pool.c
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action_ste_pool.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/context.h