mlxsw: spectrum: Don't create FIDs upon creation of VLAN uppers
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 May 2017 06:37:30 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:18:46 +0000 (15:18 -0400)
commited9ddd3aadac36869579d9075dd68067f87878cf
treeac3551038e3c864d6d3e422b03f332b4c81a0513
parentf0cebd81c9cec7395da71b43b9c02c000068907a
mlxsw: spectrum: Don't create FIDs upon creation of VLAN uppers

Up until now we used to create FIDs upon the creation of VLAN uppers on
top of the VLAN-aware bridge. This was done so that in case a router
interface (RIF) was configured on top of the bridge, the FID would
already be there.

Instead, simplify the code and only create the FID upon RIF creation.

This is an intermediary step towards the introduction of the common FID
core, in which this code would be completely removed.

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
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c