Commit 2ffdf508 authored by Nikolay Aleksandrov's avatar Nikolay Aleksandrov Committed by David S. Miller

bridge: vlan: drop master_flags from __vlan_add

There's only one user now and we can include the flag directly.
Signed-off-by: default avatarNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f8ed289f
...@@ -212,8 +212,6 @@ static int __vlan_add(struct net_bridge_vlan *v, u16 flags) ...@@ -212,8 +212,6 @@ static int __vlan_add(struct net_bridge_vlan *v, u16 flags)
} }
if (p) { if (p) {
u16 master_flags = flags;
/* Add VLAN to the device filter if it is supported. /* Add VLAN to the device filter if it is supported.
* This ensures tagged traffic enters the bridge when * This ensures tagged traffic enters the bridge when
* promiscuous mode is disabled by br_manage_promisc(). * promiscuous mode is disabled by br_manage_promisc().
...@@ -224,8 +222,8 @@ static int __vlan_add(struct net_bridge_vlan *v, u16 flags) ...@@ -224,8 +222,8 @@ static int __vlan_add(struct net_bridge_vlan *v, u16 flags)
/* need to work on the master vlan too */ /* need to work on the master vlan too */
if (flags & BRIDGE_VLAN_INFO_MASTER) { if (flags & BRIDGE_VLAN_INFO_MASTER) {
master_flags |= BRIDGE_VLAN_INFO_BRENTRY; err = br_vlan_add(br, v->vid, flags |
err = br_vlan_add(br, v->vid, master_flags); BRIDGE_VLAN_INFO_BRENTRY);
if (err) if (err)
goto out_filt; goto out_filt;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment