]> 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)
commitb0d023d79987aa6b3bd789f09be392a1488739f2
treeb898c25f0f431fa0eef410e949eb868e98a09460
parent7d06c1a294c8802afd968de58612d142142a99f0
parent8f685c97f5bdbc3878ee28836eb542c4deb3901e
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>