On Tue, 25 Aug 2015 17:34:55 -0700 Nikolay Aleksandrov <razor@xxxxxxxxxxxxx> wrote: > diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h > index 3d95647039d0..2bda472c5a6e 100644 > --- a/net/bridge/br_private.h > +++ b/net/bridge/br_private.h > @@ -294,6 +294,7 @@ struct net_bridge > u32 auto_cnt; > #ifdef CONFIG_BRIDGE_VLAN_FILTERING > u8 vlan_enabled; > + bool vlan_ignore_local_fdb; bool takes more space than u8. > __be16 vlan_proto; > u16 default_pvid; > struct net_port_vlans __rcu *vlan_info; > +int br_vlan_ignore_local_fdb_toggle(struct net_bridge *br, unsigned long val) > +{ > + br->vlan_ignore_local_fdb = val ? true : false; personal preference is for: br->vlan_ignore_local_fdb = !!val;