diff options
author | Vlad Yasevich <vyasevich@gmail.com> | 2014-10-03 11:29:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-05 21:21:36 -0400 |
commit | 96a20d9d7fff7068a2233b00379f0778a150bf86 (patch) | |
tree | 21abf27f7f18b540f65770d2877c938735b02afe /net/bridge/br_private.h | |
parent | e885439f37b0dce404291350f7c0368c2bb97cdb (diff) |
bridge: Add a default_pvid sysfs attribute
This patch allows the user to set and retrieve default_pvid
value. A new value can only be stored when vlan filtering
is disabled.
Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index fe7463c2af9a..5a347eb1d139 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -299,6 +299,7 @@ struct net_bridge | |||
299 | #ifdef CONFIG_BRIDGE_VLAN_FILTERING | 299 | #ifdef CONFIG_BRIDGE_VLAN_FILTERING |
300 | u8 vlan_enabled; | 300 | u8 vlan_enabled; |
301 | __be16 vlan_proto; | 301 | __be16 vlan_proto; |
302 | u16 default_pvid; | ||
302 | struct net_port_vlans __rcu *vlan_info; | 303 | struct net_port_vlans __rcu *vlan_info; |
303 | #endif | 304 | #endif |
304 | }; | 305 | }; |
@@ -605,6 +606,7 @@ void br_recalculate_fwd_mask(struct net_bridge *br); | |||
605 | int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val); | 606 | int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val); |
606 | int br_vlan_set_proto(struct net_bridge *br, unsigned long val); | 607 | int br_vlan_set_proto(struct net_bridge *br, unsigned long val); |
607 | void br_vlan_init(struct net_bridge *br); | 608 | void br_vlan_init(struct net_bridge *br); |
609 | int br_vlan_set_default_pvid(struct net_bridge *br, unsigned long val); | ||
608 | int nbp_vlan_add(struct net_bridge_port *port, u16 vid, u16 flags); | 610 | int nbp_vlan_add(struct net_bridge_port *port, u16 vid, u16 flags); |
609 | int nbp_vlan_delete(struct net_bridge_port *port, u16 vid); | 611 | int nbp_vlan_delete(struct net_bridge_port *port, u16 vid); |
610 | void nbp_vlan_flush(struct net_bridge_port *port); | 612 | void nbp_vlan_flush(struct net_bridge_port *port); |