]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: Toggle link only after modifying port parameters
authorGal Pressman <galp@mellanox.com>
Thu, 23 Jun 2016 14:02:42 +0000 (17:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jun 2016 08:10:41 +0000 (04:10 -0400)
commit667daedaecd15b89d0ded7af49519f28d6ea2cf4
treea3d9e5cecbd2145bb5be79bcca4cfb3189ce2abe
parentcb3c7fd4f8393e0c42cbb13367b60454ae4e05f7
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>
drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/port.h