]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: spectrum: Make split flow match firmware requirements
authorIdo Schimmel <idosch@mellanox.com>
Thu, 9 Jun 2016 07:51:39 +0000 (09:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2016 18:20:05 +0000 (11:20 -0700)
commitbe94535f95313a013b844b563ef15ddd8fb43da8
tree5e531c40ffe5661a19a7128113ccc41fb3d8055c
parent9b15350f0d5c401c02eca15c4e6ca0603cff1a41
mlxsw: spectrum: Make split flow match firmware requirements

When a port is created following a split / unsplit we need to map it to
the correct module and lane, enable it and then continue to initialize
its various parameters such as MTU and VLAN filters.

Under certain conditions, such as trying to split ports at the bottom
row of the front panel by four, we get firmware errors.

After evaluating this with the firmware team it was decided to alter the
split / unsplit flow, so that first all the affected ports are mapped,
then enabled and finally each is initialized separately.

Fix the split / unsplit flow by first mapping and enabling all the
affected ports. Newer firmware versions will support both flows.

Fixes: 18f1e70c4137 ("mlxsw: spectrum: Introduce port splitting")
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