mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-28 16:33:10 +00:00
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>
This commit is contained in:
committed by
David S. Miller
parent
4b5e5b7ece
commit
297e1cf29e
@ -1539,8 +1539,13 @@ enum mlx4_ptys_proto {
|
||||
MLX4_PTYS_EN = 1<<2,
|
||||
};
|
||||
|
||||
enum mlx4_ptys_flags {
|
||||
MLX4_PTYS_AN_DISABLE_CAP = 1 << 5,
|
||||
MLX4_PTYS_AN_DISABLE_ADMIN = 1 << 6,
|
||||
};
|
||||
|
||||
struct mlx4_ptys_reg {
|
||||
u8 resrvd1;
|
||||
u8 flags;
|
||||
u8 local_port;
|
||||
u8 resrvd2;
|
||||
u8 proto_mask;
|
||||
|
||||
Reference in New Issue
Block a user