]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bridge: Add filtering support for default_pvid
authorVlad Yasevich <vyasevich@gmail.com>
Fri, 3 Oct 2014 15:29:18 +0000 (11:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 01:21:37 +0000 (21:21 -0400)
commit5be5a2df40f005ea7fb7e280e87bbbcfcf1c2fc0
tree6aa782488f47684f803657acca74aa42b1303e59
parent3df6bf45ec008942f16f1814123c4bdebcf50741
bridge: Add filtering support for default_pvid

Currently when vlan filtering is turned on on the bridge, the bridge
will drop all traffic untill the user configures the filter.  This
isn't very nice for ports that don't care about vlans and just
want untagged traffic.

A concept of a default_pvid was recently introduced.  This patch
adds filtering support for default_pvid.   Now, ports that don't
care about vlans and don't define there own filter will belong
to the VLAN of the default_pvid and continue to receive untagged
traffic.

This filtering can be disabled by setting default_pvid to 0.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c
net/bridge/br_if.c
net/bridge/br_private.h
net/bridge/br_vlan.c