Re: [PATCH net-next 1/3] net/mlx5: fs, add API for sharing HWS action by refcount

From: Jacob Keller
Date: Wed Mar 12 2025 - 18:49:19 EST




On 3/9/2025 11:07 AM, Tariq Toukan wrote:
> From: Moshe Shemesh <moshe@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Reviewed-by: Mark Bloch <mbloch@xxxxxxxxxx>
> Signed-off-by: Tariq Toukan <tariqt@xxxxxxxxxx>
> ---

Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>