You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mlx5: Add support for bulk flow counters in mlx5dv_create_flow
Extend the mlx5dv_create_flow API to support bulk counter operations by
introducing a new action type MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET.
This allows users to specify an offset within DEVX counter objects for
more granular bulk counter object management.
The implementation removes the previous auxiliary array approach
(_mlx5dv_create_flow with actions_attr_aux parameter) in favor of a
cleaner design that embeds offset information directly within the flow
action structure. The mlx5dv_flow_action_attr union is extended with a
bulk_obj member containing both the DEVX object and an offset, allowing
also external rdma-core applications to use DEVX bulk counter via the
offset.
Existing applications using MLX5DV_FLOW_ACTION_COUNTERS_DEVX continue to
work unchanged, while new applications can use the enhanced
MLX5DV_FLOW_ACTION_COUNTERS_DEVX_WITH_OFFSET for bulk counter scenarios.
Note that no kernel changes needed, since DEVX bulk counter object with
offset is already supported.
Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Signed-off-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
0 commit comments