mlx5 core users are encouraged to use low level API (mlx5_cmd_exec) without the need of helper functions, do this for q counters, remove helper functions and call mlx5_cmd_exec directly from users. This will help reduce the total amount of code and reduction of the mlx5_core symbol table.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -595,10 +595,6 @@ int mlx5_core_create_sq_tracked(struct mlx5_core_dev *dev, u32 *in, int inlen, · 594 unmodified lines | ||
| 595 | 595 | struct mlx5_core_qp *sq); |
| 596 | 596 | void mlx5_core_destroy_sq_tracked(struct mlx5_core_dev *dev, |
| 597 | 597 | struct mlx5_core_qp *sq); |
| 598 | −int mlx5_core_alloc_q_counter(struct mlx5_core_dev *dev, u16 *counter_id); | |
| 599 | −int mlx5_core_dealloc_q_counter(struct mlx5_core_dev *dev, u16 counter_id); | |
| 600 | −int mlx5_core_query_q_counter(struct mlx5_core_dev *dev, u16 counter_id, | |
| 601 | − int reset, void *out, int out_size); | |
| 602 | 598 | |
| 603 | 599 | struct mlx5_core_rsc_common *mlx5_core_res_hold(struct mlx5_core_dev *dev, |
| 604 | 600 | int res_num, |