]> 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)
commitbc96e4b3cf2fa4dde421ff51b97200f369180463
treeac3551038e3c864d6d3e422b03f332b4c81a0513
parentc7387a420d61e6beae9f51422ac795981d01b676
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