]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Support-bridge-router-interfaces-with-non-default-VLAN'
authorDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 09:05:32 +0000 (18:05 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 09:05:32 +0000 (18:05 +0900)
commit33704f74aae1e09920a86cddc354a4bd08d9fd70
treeb898c25f0f431fa0eef410e949eb868e98a09460
parent557299d4b5ce59b44ec6d1575f4eddde73b97a20
parentc343ede6b962114b209387830f1361b32772809d
Merge branch 'mlxsw-Support-bridge-router-interfaces-with-non-default-VLAN'

Ido Schimmel says:

====================
mlxsw: Support bridge router interfaces with non-default VLAN

Petr says:

When traffic is inserted on a router interface associated with an 802.1q
bridge, the VLAN that the traffic appears on is determined by PVID of
the bridge device itself. However currently mlxsw always configures such
traffic to be forwarded to VLAN 1, regardless of the bridge PVID.

Fix the problem by modifying the FID-handling code to assign such
traffic not to FID that corresponds to VLAN 1, but to a FID that
corresponds to the configured PVID. Bail out if there is no PVID. This
is implemented in patches #1 and #2.

From that point on, also forbid any changes to bridge device PVID,
because such changes would not be reflected. This is implemented in
patches #3, #4 and #5.

Finally in patch #6, introduce tests that use bridge as a routed
interface, and test mlxsw in both the currently-supported scenario of
using PVID 1, and the newly-supported one of using a custom PVID.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>