]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Sync PVID vPort LAG status
authorIdo Schimmel <idosch@mellanox.com>
Sat, 2 Jul 2016 09:00:11 +0000 (11:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 19:21:17 +0000 (15:21 -0400)
commitc38cc5493b9c27495fde8ad8a1b40d77721af387
tree8cbdc4152356ec41e9028c71522f627aed7fb66a
parentb0b0839c516860639c971e304095fb2444be1715
mlxsw: spectrum: Sync PVID vPort LAG status

When VLAN devices are created on top of LAG, their underlying vPorts are
configured correctly with LAG membership.

However, the PVID vPort is implicit and already present when the port
netdev is put under LAG, so its LAG membership is never set. Set it
correctly when joining / leaving LAG.

This didn't matter until now, but we are going to introduce support for
router interfaces (RIFs), which need to take into account LAG membership.

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