]> www.infradead.org Git - users/hch/misc.git/commit
net/mlx5: fs, add API for sharing HWS action by refcount
authorMoshe Shemesh <moshe@nvidia.com>
Sun, 9 Mar 2025 18:07:41 +0000 (20:07 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 17 Mar 2025 17:57:17 +0000 (18:57 +0100)
commitcc2cc56fc6e6349ba69e37d5706ddada8936c8ff
tree38b49f36aa54191f2b711500ec6bbd2a9f4291e1
parent2c99b2e1634def2e019142554079c48d8b49ae7a
net/mlx5: fs, add API for sharing HWS action by refcount

Counters HWS actions are shared using refcount, to create action on
demand by flow steering rule and destroy only when no rules are using
the action. The method is extensible to other HWS action types, such as
flow meter and sampler actions, in the downstream patches.

Add an API to facilitate the reuse of get/put logic for HWS actions
shared by refcount.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/1741543663-22123-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.c