]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/mlx5e: Ethtool link speed setting fixes
authorAchiad Shochat <achiad@mellanox.com>
Sun, 16 Aug 2015 13:04:50 +0000 (16:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 22:51:35 +0000 (15:51 -0700)
commit6fa1bcab6be6e9bd93f80e345c7e9a4ec7861df9
tree2eca33e63c01086b5aeccf0bc3cb7fa22b569058
parentd9a40271cfe625950dc4ef0cbd8429c0d28e62d1
net/mlx5e: Ethtool link speed setting fixes

- Port speed settings are applied by the device only upon
  port admin status transition from DOWN to UP.
  So we enforce this transition regardless of the port's
  current operation state (which may be occasionally DOWN if
  for example the network cable is disconnected).
- Fix the PORT_UP/DOWN device interface enum
- Set the local_port bit in the device PAOS register
- EXPORT the PAOS (Port Administrative and Operational Status)
  register set/query access functions.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/port.c
include/linux/mlx5/driver.h