提交 248234ca 编写于 作者: N Nikolay Aleksandrov 提交者: David S. Miller

bridge: vlan: don't pass flags when creating context only

We should not pass the original flags when creating a context vlan only
because they may contain some flags that change behaviour in the bridge.
The new global context should be with minimal set of flags, so pass 0
and let br_vlan_add() set the master flag only.
Signed-off-by: NNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 263344e6
...@@ -197,7 +197,7 @@ static int __vlan_add(struct net_bridge_vlan *v, u16 flags) ...@@ -197,7 +197,7 @@ static int __vlan_add(struct net_bridge_vlan *v, u16 flags)
masterv = br_vlan_find(br->vlgrp, v->vid); masterv = br_vlan_find(br->vlgrp, v->vid);
if (!masterv) { if (!masterv) {
/* missing global ctx, create it now */ /* missing global ctx, create it now */
err = br_vlan_add(br, v->vid, master_flags); err = br_vlan_add(br, v->vid, 0);
if (err) if (err)
goto out_filt; goto out_filt;
masterv = br_vlan_find(br->vlgrp, v->vid); masterv = br_vlan_find(br->vlgrp, v->vid);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册