summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/port.h
diff options
context:
space:
mode:
authorNoa Osherovich2016-06-02 09:47:53 +0200
committerLeon Romanovsky2016-08-18 17:49:52 +0200
commitd5beb7f2aff4a60237fd97a98d49a78c9045b8f2 (patch)
tree7b321d490a99f7829c6327ad08f48fd3969e8a5b /include/linux/mlx5/port.h
parentnet/mlx5: Expose mlx5e_link_mode (diff)
downloadkernel-qcow2-linux-d5beb7f2aff4a60237fd97a98d49a78c9045b8f2.tar.gz
kernel-qcow2-linux-d5beb7f2aff4a60237fd97a98d49a78c9045b8f2.tar.xz
kernel-qcow2-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 'include/linux/mlx5/port.h')
-rw-r--r--include/linux/mlx5/port.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/mlx5/port.h b/include/linux/mlx5/port.h
index 6f876a4770f6..b3065acd20b4 100644
--- a/include/linux/mlx5/port.h
+++ b/include/linux/mlx5/port.h
@@ -103,9 +103,10 @@ int mlx5_query_port_proto_admin(struct mlx5_core_dev *dev,
u32 *proto_admin, int proto_mask);
int mlx5_query_port_link_width_oper(struct mlx5_core_dev *dev,
u8 *link_width_oper, u8 local_port);
-int mlx5_query_port_proto_oper(struct mlx5_core_dev *dev,
- u8 *proto_oper, int proto_mask,
- u8 local_port);
+int mlx5_query_port_ib_proto_oper(struct mlx5_core_dev *dev,
+ u8 *proto_oper, u8 local_port);
+int mlx5_query_port_eth_proto_oper(struct mlx5_core_dev *dev,
+ u32 *proto_oper, u8 local_port);
int mlx5_set_port_ptys(struct mlx5_core_dev *dev, bool an_disable,
u32 proto_admin, int proto_mask);
void mlx5_toggle_port_link(struct mlx5_core_dev *dev);