mlxsw: spectrum: Report link partner's advertised speeds
authorIdo Schimmel <idosch@mellanox.com>
Mon, 12 Sep 2016 11:26:24 +0000 (13:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Sep 2016 16:16:33 +0000 (12:16 -0400)
commit4149b97f728edc9247939ece42a784c14b4e212f
tree175ad29aaa581e683c9be4b24cf2efa23ca3e785
parent0c83f88c02085a762d52ebcd9cc4ca3df39db797
mlxsw: spectrum: Report link partner's advertised speeds

If autonegotiation was performed successfully, then we should report the
link partner's advertised speeds instead of the operational speed of the
port.

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>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum.c