]> 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)
commit93d80cf8ece139ebfe951d51285ed8757c82bff0
tree22fc84445f095cfcb3ca2eff05552cc8818b7c00
parenteda88005d24095c98b0b9f84d035d3b7c29e37c9
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