]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Report port type according to operational speed
authorIdo Schimmel <idosch@mellanox.com>
Mon, 12 Sep 2016 11:26:25 +0000 (13:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Sep 2016 16:16:33 +0000 (12:16 -0400)
commitb58dbcb93e6855b9d4cbebec89dfc273d1219171
tree826d03f6de40f21477519decf985049563413625
parent94b88d8759bd09c016c36f51169315d59b626579
mlxsw: spectrum: Report port type according to operational speed

In case port isn't operational we shouldn't report the port type, but
instead return PORT_OTHER. This is consistent with most other drivers
that return PORT_OTHER when media type can't be determined.

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/spectrum.c