]> Pileus Git - ~andy/linux/commit
bridge: Add vlan filtering infrastructure
authorVlad Yasevich <vyasevic@redhat.com>
Wed, 13 Feb 2013 12:00:09 +0000 (12:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2013 00:41:46 +0000 (19:41 -0500)
commit243a2e63f5f47763b802e9dee8dbf1611a1c1322
tree547c44d694683fe852414b7fade126f3b0d2a56b
parent222229974824a4f30b417531cdc9b5b869d6a6b7
bridge: Add vlan filtering infrastructure

Adds an optional infrustructure component to bridge that would allow
native vlan filtering in the bridge.  Each bridge port (as well
as the bridge device) now get a VLAN bitmap.  Each bit in the bitmap
is associated with a vlan id.  This way if the bit corresponding to
the vid is set in the bitmap that the packet with vid is allowed to
enter and exit the port.

Write access the bitmap is protected by RTNL and read access
protected by RCU.

Vlan functionality is disabled by default.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/Kconfig
net/bridge/Makefile
net/bridge/br_if.c
net/bridge/br_private.h
net/bridge/br_sysfs_br.c
net/bridge/br_vlan.c [new file with mode: 0644]