Skip to content

Commit

Permalink
[VLAN]: Don't synchronize addresses while the vlan device is down
Browse files Browse the repository at this point in the history
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 <buc@odusz.so-cdu.ru>

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Nov 11, 2007
1 parent 358352b commit d932e04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,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;
Expand Down

0 comments on commit d932e04

Please sign in to comment.