]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mlxsw: spectrum: Remove RIF from PVID vPort when joining / leaving LAG
authorIdo Schimmel <idosch@mellanox.com>
Sat, 2 Jul 2016 09:00:12 +0000 (11:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 19:21:17 +0000 (15:21 -0400)
commit11943ff4423d1f3f84d502d65d72f6a98bd2dc91
tree463415bd215f9d2aecc923de3a423e1c625b7a1d
parent86bf95b334a77c388b2aca4b26d24216d9784823
mlxsw: spectrum: Remove RIF from PVID vPort when joining / leaving LAG

We are going to assign router interfaces (RIFs) to netdevs if an IPv4
address was assigned to them. If one was assigned to a port netdev, this
will translate to the PVID vPort being member in a RIF.

While it's possible for a LAG slave to have an IP address, we can't have
a vPort being member in two FIDs (assuming the LAG device will be
put in bridge / assigned an IP address).

Solve that by making the PVID vPort leave any FID it might be a member
in when joining / leaving LAG.

Note that the PVID vPort is the only vPort that can be present on the
port when it's put under LAG.

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