diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2013-02-13 13:00:09 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-14 01:41:46 +0100 |
commit | 243a2e63f5f47763b802e9dee8dbf1611a1c1322 (patch) | |
tree | 547c44d694683fe852414b7fade126f3b0d2a56b /net/bridge/br_if.c | |
parent | net: sctp: add build check for sctp_sf_eat_sack_6_2/jsctp_sf_eat_sack (diff) | |
download | linux-243a2e63f5f47763b802e9dee8dbf1611a1c1322.tar.xz linux-243a2e63f5f47763b802e9dee8dbf1611a1c1322.zip |
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>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r-- | net/bridge/br_if.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 2148d474a04f..af9d65ab4001 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -139,6 +139,7 @@ static void del_nbp(struct net_bridge_port *p) br_ifinfo_notify(RTM_DELLINK, p); + nbp_vlan_flush(p); br_fdb_delete_by_port(br, p, 1); list_del_rcu(&p->list); |