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)
commit297e1cf29eac13d3e5bb896d18c64a50b6bb48eb
tree22fc84445f095cfcb3ca2eff05552cc8818b7c00
parent4b5e5b7ececc3265092712a4fef140cc6ef0d028
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