bridge: Allow clearing of pvid and untagged bitmap
authorVlad Yasevich <vyasevic@redhat.com>
Fri, 12 Sep 2014 20:26:17 +0000 (16:26 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 21:21:56 +0000 (17:21 -0400)
commit635126b7ca13a01d6322fbf7bdc5d1c738d26807
treeb143668258d60aa96d7c232d77dbfd979c8a758c
parent20adfa1a81af00bf2027644507ad4fa9cd2849cf
bridge: Allow clearing of pvid and untagged bitmap

Currently, it is possible to modify the vlan filter
configuration to add pvid or untagged support.
For example:
  bridge vlan add vid 10 dev eth0
  bridge vlan add vid 10 dev eth0 untagged pvid

The second statement will modify vlan 10 to
include untagged and pvid configuration.
However, it is currently impossible to go backwards
  bridge vlan add vid 10 dev eth0 untagged pvid
  bridge vlan add vid 10 dev eth0

Here nothing happens.  This patch correct this so
that any modifiers not supplied are removed from
the configuration.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_vlan.c
This page took 0.028235 seconds and 5 git commands to generate.