net/mlx5: HWS, denote how refcounts are protected
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Thu, 2 Jan 2025 18:14:02 +0000 (20:14 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Jan 2025 00:33:39 +0000 (16:33 -0800)
commit0a1ef807a403b2f386a571133eb35e25c6511808
tree037badc7cb8ec13a7995c53e249d7574ff1835a7
parent0647f27a5facedf6842c67b9909a23f577bd3d08
net/mlx5: HWS, denote how refcounts are protected

Some HWS structs have refcounts that are just u32.
Comment how they are protected and add '__must_hold()'
annotation where applicable.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Erez Shitrit <erezsh@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250102181415.1477316-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/pat_arg.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/table.c