summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorGal Pressman <galp@mellanox.com>2016-06-23 17:02:42 +0300
committerDavid S. Miller <davem@davemloft.net>2016-06-27 04:10:41 -0400
commit667daedaecd15b89d0ded7af49519f28d6ea2cf4 (patch)
treea3d9e5cecbd2145bb5be79bcca4cfb3189ce2abe /include/linux/mlx5
parentcb3c7fd4f8393e0c42cbb13367b60454ae4e05f7 (diff)
downloadtalos-obmc-linux-667daedaecd15b89d0ded7af49519f28d6ea2cf4.tar.gz
talos-obmc-linux-667daedaecd15b89d0ded7af49519f28d6ea2cf4.zip
net/mlx5e: Toggle link only after modifying port parameters
Add a dedicated function to toggle port link. It should be called only after setting a port register. Toggle will set port link to down and bring it back up in case that it's admin status was up. Signed-off-by: Gal Pressman <galp@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/port.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/port.h b/include/linux/mlx5/port.h
index 9851862c0ec5..4adfac15f0e9 100644
--- a/include/linux/mlx5/port.h
+++ b/include/linux/mlx5/port.h
@@ -67,6 +67,7 @@ int mlx5_query_port_proto_oper(struct mlx5_core_dev *dev,
u8 local_port);
int mlx5_set_port_proto(struct mlx5_core_dev *dev, u32 proto_admin,
int proto_mask);
+void mlx5_toggle_port_link(struct mlx5_core_dev *dev);
int mlx5_set_port_admin_status(struct mlx5_core_dev *dev,
enum mlx5_port_status status);
int mlx5_query_port_admin_status(struct mlx5_core_dev *dev,
OpenPOWER on IntegriCloud