]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0cb7bdfcffb5760071a0f3da200e9cb3e58ba2e1
treeac3551038e3c864d6d3e422b03f332b4c81a0513
parentc5b5fb3fb3d07ec6032173d591da36c98a1271b5
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