]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite599bc0ade7e74bd4710bfa7b1247a408ecdec9c
tree5dc2fcfae14005c7ddaac2538983d83b4a9d2595
parent1bf892162333684f028e2e511089b3e8a14e7237
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: 73c9afd3efff ("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