]> git.baikalelectronics.ru Git - kernel.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)
commitb12b25aa18ad80e2d8d35adbb09e9245be5507fa
tree5e531c40ffe5661a19a7128113ccc41fb3d8055c
parent3dd0432045b5b96ea4c9a1eda96f653b4a9eeb15
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: 96297054b147 ("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