]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: spectrum_switchdev: Ban PVID change if bridge has a RIF
authorPetr Machata <petrm@mellanox.com>
Mon, 25 Jun 2018 07:48:17 +0000 (10:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 09:05:22 +0000 (18:05 +0900)
commit567ad1a2bb6c1e2ca9644d1b47263b7d5e1ff900
treeda401f53d93edc34c5f238dad07c0bdad0e8955e
parenta28b1ebef72b19bf40fbceacdf33212d820728dd
mlxsw: spectrum_switchdev: Ban PVID change if bridge has a RIF

When traffic passes through a router port, it needs to be assigned a FID
for ASIC to forward correctly. For bridges, this FID used to be the one
corresponding to VLAN 1. In a previous patch, this was changed to
instead use the PVID at the time that the RIF is created. This patch
guards PVID changes after the RIF was introduced.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c