]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Adding support of turning off link autonegotiation via ethtool
authorAriel Levkovich <lariel@mellanox.com>
Sun, 29 Jan 2017 16:56:17 +0000 (18:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 20:26:42 +0000 (15:26 -0500)
commit4550fb1e05d4c6b488fbf5e916e3e6743e1d3dc5
tree22fc84445f095cfcb3ca2eff05552cc8818b7c00
parentb4a37a1da8e9236f0c0c8438d3ee2e936c2c7c1f
net/mlx4_en: Adding support of turning off link autonegotiation via ethtool

This feature will allow the user to disable auto negotiation
on the port for mlx4 devices while setting the speed is limited
to 1GbE speeds.
Other speeds will not be accepted in autoneg off mode.

This functionality is permitted providing that the firmware
is compatible with this feature.
The above is determined by querying a new dedicated capability
bit in the device.

Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
include/linux/mlx4/device.h