]> git.baikalelectronics.ru Git - kernel.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)
commit123c6a60abf416047eddf14e8173e89f0f15479e
tree6aa782488f47684f803657acca74aa42b1303e59
parent9c850aa83459c403a8e5a24f248557e912b0bed0
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