diff options
author | Ido Schimmel <idosch@mellanox.com> | 2016-09-12 13:26:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-13 12:16:33 -0400 |
commit | 0c83f88c02085a762d52ebcd9cc4ca3df39db797 (patch) | |
tree | c025ae2d349f5402b18ed816aeeed07711395df9 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | 36a19b299536746f5c01d7716dac962f831e4d38 (diff) |
mlxsw: spectrum: Correctly report autonegotiation
Up until now the device always reported autonegotiation to be off
although it was on by default.
Allow the user to disable / enable autonegotiation and report its status
correctly.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index 31a2f3df55a6..969c250b3048 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -341,7 +341,8 @@ struct mlxsw_sp_port { } vport; struct { u8 tx_pause:1, - rx_pause:1; + rx_pause:1, + autoneg:1; } link; struct { struct ieee_ets *ets; |