]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add support for VLAN devices on top of LAG
authorIdo Schimmel <idosch@mellanox.com>
Tue, 15 Dec 2015 15:03:47 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 16:58:24 +0000 (11:58 -0500)
commit8767e49d5e6fdc2aad91c991c1a1f222613e1704
tree3acfc20a34a0fd5e4d0c021c5c8f5f4a2a090680
parentd61fb22070c88d2261a7f1fc1d0da9d0832bbba4
mlxsw: spectrum: Add support for VLAN devices on top of LAG

When creating a VLAN device on top of LAG, we are basically creating a
vPort on top of each of the port netdevs member in the LAG. Therefore,
these vPorts should inherit both the LAG status and LAG ID from the
underlying port netdevs.

In addition, when the VLAN device joins or leaves a bridge each of the
underlying vPorts should know about it and act accordingly. This is
achieved by propagating the VLAN event down to the lower devices.

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