History

net/mlx5: Remove Q counter low level helper APIs

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.

Leon Romanovsky committed 6 years ago

Commit 66247fb1 parent 57a6c5e5 files · +80 −92Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/mlx5/qp.h+0−4
@@ -595,10 +595,6 @@ int mlx5_core_create_sq_tracked(struct mlx5_core_dev *dev, u32 *in, int inlen, · 594 unmodified lines
595 struct mlx5_core_qp *sq);595 struct mlx5_core_qp *sq);
596void mlx5_core_destroy_sq_tracked(struct mlx5_core_dev *dev,596void mlx5_core_destroy_sq_tracked(struct mlx5_core_dev *dev,
597 struct mlx5_core_qp *sq);597 struct mlx5_core_qp *sq);
598int mlx5_core_alloc_q_counter(struct mlx5_core_dev *dev, u16 *counter_id);
599int mlx5_core_dealloc_q_counter(struct mlx5_core_dev *dev, u16 counter_id);
600int mlx5_core_query_q_counter(struct mlx5_core_dev *dev, u16 counter_id,
601 int reset, void *out, int out_size);
602 598
603struct mlx5_core_rsc_common *mlx5_core_res_hold(struct mlx5_core_dev *dev,599struct mlx5_core_rsc_common *mlx5_core_res_hold(struct mlx5_core_dev *dev,
604 int res_num,600 int res_num,