From dae1e6e82707b560430ef0a9a24c57724cfdb8ae Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Tue, 13 Nov 2007 00:11:51 -0800 Subject: Fix VLAN address syncing. patch d932e04a5e7b146c5f9bf517714b986a432a7594 in mainline. [PATCH] [VLAN]: Don't synchronize addresses while the vlan device is down While the VLAN device is down, the unicast addresses are not configured on the underlying device, so we shouldn't attempt to sync them. Noticed by Dmitry Butskoy Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/8021q/vlan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 2a546919d6fb..327ff81ebbd7 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c @@ -629,6 +629,10 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event, if (!vlandev) continue; + flgs = vlandev->flags; + if (!(flgs & IFF_UP)) + continue; + vlan_sync_address(dev, vlandev); } break; -- cgit v1.2.3