net/mlx5: refactor getting counter action pointer
authorHaifei Luo <haifeil@nvidia.com>
Mon, 21 Feb 2022 08:27:21 +0000 (10:27 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 23 Feb 2022 14:57:34 +0000 (15:57 +0100)
commit9b57df5575de8f8e3615f6e5efce4ef664f288d2
tree123c756632d552964d191d180ecce16649964799
parent94112badf6f579ac76e96bda3b015ffee95a2c68
net/mlx5: refactor getting counter action pointer

Previously API flow_dv_query_count_ptr is defined to get counter's
action pointer. This DV function is directly called and the better
way is by the callback.

Add one arg in API mlx5_counter_query and the related callback
counter_query. The added arg is for counter's action pointer.

Signed-off-by: Haifei Luo <haifeil@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_meter.c