提交 81d85346 编写于 作者: P Patrick McHardy 提交者: David S. Miller

vlan: Correctly handle device notifications for layered VLAN devices

Commit 30688a9a ([VLAN]: Handle vlan devices net namespace changing)
changed the device notifier to special-case notifications for VLAN
devices, effectively disabling state propagation to underlying VLAN
devices. This is needed for layered VLANs though, so restore the
original behaviour.
Signed-off-by: NPatrick McHardy <kaber@trash.net>
Acked-by: NPavel Emelyanov <xemul@openvz.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0e91796e
......@@ -410,10 +410,8 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event,
int i, flgs;
struct net_device *vlandev;
if (is_vlan_dev(dev)) {
if (is_vlan_dev(dev))
__vlan_device_event(dev, event);
goto out;
}
grp = __vlan_find_group(dev);
if (!grp)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册