From: Patrick McHardy Date: Mon, 9 Jun 2008 18:42:44 +0000 (-0700) Subject: vlan: Correctly handle device notifications for layered VLAN devices X-Git-Tag: v2.6.25.7~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac1f91cebd455f1651b46fd933805536233a1a98;p=thirdparty%2Fkernel%2Fstable.git vlan: Correctly handle device notifications for layered VLAN devices [ upstream commit: 81d85346b3fcd8b3167eac8b5fb415a210bd4345 ] Commit 30688a9 ([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: Patrick McHardy Acked-by: Pavel Emelyanov Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index b33410abfd6bf..c0bac6d92074c 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -397,10 +397,8 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event, if (dev->nd_net != &init_net) return NOTIFY_DONE; - if (is_vlan_dev(dev)) { + if (is_vlan_dev(dev)) __vlan_device_event(dev, event); - goto out; - } grp = __vlan_find_group(dev->ifindex); if (!grp)