Re: [PATCH 00/11] Add basic VLAN support to bridges
From: David Miller <davem@davemloft.net>
Date: 2012-12-13 20:29:00
From: Vlad Yasevich <redacted> Date: Wed, 12 Dec 2012 15:01:06 -0500
This series of patches provides an ability to add VLANs to the bridge ports. This is similar to what can be found in most switches. The bridge port may have any number of VLANs added to it including vlan 0 priority tagged traffic. When vlans are added to the port, only traffic tagged with particular vlan will forwarded over this port. Additionally, vlan ids are added to FDB entries and become part of the lookup. This way we correctly identify the FDB entry. A single vlan may also be designated as untagged. Any untagged traffic recieved by the port will be assigned to this vlan. Any traffic exiting the port with a VID matching the untagged vlan will exit untagged (the bridge will strip the vlan header). This is similar to "Native Vlan" support available in most switches. The default behavior ofthe bridge is unchanged if no vlans have been configured.
FWIW I've reviewed these changes and I like them a lot. They resolve a real ambiguity, and using ebtables as a reason these changes should not be applied amounts to a scarecrow.