aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2016-02-23 03:25:22 -0500
committerDoug Ledford <dledford@redhat.com>2016-03-21 16:29:07 -0400
commitb06e7de8a9d8d1d540ec122bbdf2face2a211634 (patch)
tree07762707f1911508a4df99cafc7b6cd5360873a5 /include/linux
parent91d9ed8443b88cc50b81cf5ec900172515270f6f (diff)
net/mlx5_core: Refactor device capability function
Device capability function was called similar in all places. It was called twice for every queried parameter, while the difference between calls was in HCA capability mode only. The change proposed unify these calls into one function. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/driver.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 9108904a6a56..406b27ec1d42 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -706,8 +706,7 @@ void mlx5_cmd_use_events(struct mlx5_core_dev *dev);
706void mlx5_cmd_use_polling(struct mlx5_core_dev *dev); 706void mlx5_cmd_use_polling(struct mlx5_core_dev *dev);
707int mlx5_cmd_status_to_err(struct mlx5_outbox_hdr *hdr); 707int mlx5_cmd_status_to_err(struct mlx5_outbox_hdr *hdr);
708int mlx5_cmd_status_to_err_v2(void *ptr); 708int mlx5_cmd_status_to_err_v2(void *ptr);
709int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type, 709int mlx5_core_get_caps(struct mlx5_core_dev *dev, enum mlx5_cap_type cap_type);
710 enum mlx5_cap_mode cap_mode);
711int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out, 710int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
712 int out_size); 711 int out_size);
713int mlx5_cmd_exec_cb(struct mlx5_core_dev *dev, void *in, int in_size, 712int mlx5_cmd_exec_cb(struct mlx5_core_dev *dev, void *in, int in_size,