]> git.baikalelectronics.ru Git - kernel.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)
commitc5ca468132b3b666d6954deb53c38783aa603832
tree2eca33e63c01086b5aeccf0bc3cb7fa22b569058
parentbcaa05a86b3073e872b4a148ed50dd96c1ede32c
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