OSDN Git Service

mlxsw: switchx2: Fix port speed configuration
authorElad Raz <eladr@mellanox.com>
Fri, 28 Oct 2016 19:35:51 +0000 (21:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 20:50:17 +0000 (16:50 -0400)
commit10dbf8f8ec587ca0d23464af30a524cef216b1fa
tree5dc2fcfae14005c7ddaac2538983d83b4a9d2595
parente50e789ce178b6ae7c18b3e90884123398bab5f3
mlxsw: switchx2: Fix port speed configuration

In SwitchX-2 we configure the port speed to negotiate with 40G link only.
Add support for all other supported speeds.

Fixes: 31557f0f9755 ("mlxsw: Introduce Mellanox SwitchX-2 ASIC support")
Signed-off-by: Elad Raz <eladr@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-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/switchx2.c