summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/port.h
diff options
context:
space:
mode:
authorGal Pressman2016-06-23 16:02:42 +0200
committerDavid S. Miller2016-06-27 10:10:41 +0200
commit667daedaecd15b89d0ded7af49519f28d6ea2cf4 (patch)
treea3d9e5cecbd2145bb5be79bcca4cfb3189ce2abe /include/linux/mlx5/port.h
parentnet/mlx5e: Support adaptive RX coalescing (diff)
downloadkernel-qcow2-linux-667daedaecd15b89d0ded7af49519f28d6ea2cf4.tar.gz
kernel-qcow2-linux-667daedaecd15b89d0ded7af49519f28d6ea2cf4.tar.xz
kernel-qcow2-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/port.h')
-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,