Skip to content

Commit

Permalink
vlan: Correctly handle device notifications for layered VLAN devices
Browse files Browse the repository at this point in the history
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 <kaber@trash.net>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed May 20, 2008
1 parent 0e91796 commit 81d8534
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 81d8534

Please sign in to comment.