[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150825175820.0b0538c1@urahara>
Date: Tue, 25 Aug 2015 17:58:20 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Nikolay Aleksandrov <razor@...ckwall.org>
Cc: netdev@...r.kernel.org, vyasevic@...hat.com,
toshiaki.makita1@...il.com, bridge@...ts.linux-foundation.org,
wkok@...ulusnetworks.com, davem@...emloft.net,
Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
Subject: Re: [PATCH net-next v2] bridge: vlan: allow to suppress local mac
install for all vlans
On Tue, 25 Aug 2015 17:34:55 -0700
Nikolay Aleksandrov <razor@...ckwall.org> 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;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists