summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/main.c
diff options
context:
space:
mode:
authorNoa Osherovich <noaos@mellanox.com>2016-06-02 09:47:53 +0200
committerLeon Romanovsky <leon@kernel.org>2016-08-18 17:49:52 +0200
commitd5beb7f2aff4a60237fd97a98d49a78c9045b8f2 (patch)
tree7b321d490a99f7829c6327ad08f48fd3969e8a5b /drivers/infiniband/hw/mlx5/main.c
parentnet/mlx5: Expose mlx5e_link_mode (diff)
downloadlinux-d5beb7f2aff4a60237fd97a98d49a78c9045b8f2.tar.xz
linux-d5beb7f2aff4a60237fd97a98d49a78c9045b8f2.zip
net/mlx5: Separate query_port_proto_oper for IB and EN
Replaced mlx5_query_port_proto_oper with separate functions per link type. The functions should take different arguments so no point in trying to unite them. Signed-off-by: Noa Osherovich <noaos@mellanox.com> Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
-rw-r--r--drivers/infiniband/hw/mlx5/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 6fb77d791045..f02a975320bd 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -748,8 +748,7 @@ static int mlx5_query_hca_port(struct ib_device *ibdev, u8 port,
&props->active_width);
if (err)
goto out;
- err = mlx5_query_port_proto_oper(mdev, &props->active_speed, MLX5_PTYS_IB,
- port);
+ err = mlx5_query_port_ib_proto_oper(mdev, &props->active_speed, port);
if (err)
goto out;