diff options
author | Patrick McHardy <kaber@trash.net> | 2007-11-11 00:51:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-11 00:51:40 -0500 |
commit | d932e04a5e7b146c5f9bf517714b986a432a7594 (patch) | |
tree | e58b68ba98068db9a8c60c096387d59657d85222 /net | |
parent | 358352b8b83c67ecf75f6d7bc3e2d64bf0cf506a (diff) |
[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 <buc@odusz.so-cdu.ru>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/8021q/vlan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index 1037748c14d..0fadbc6fbc3 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -636,6 +636,10 @@ static int vlan_device_event(struct notifier_block *unused, unsigned long event, | |||
636 | if (!vlandev) | 636 | if (!vlandev) |
637 | continue; | 637 | continue; |
638 | 638 | ||
639 | flgs = vlandev->flags; | ||
640 | if (!(flgs & IFF_UP)) | ||
641 | continue; | ||
642 | |||
639 | vlan_sync_address(dev, vlandev); | 643 | vlan_sync_address(dev, vlandev); |
640 | } | 644 | } |
641 | break; | 645 | break; |