Commit:     d932e04a5e7b146c5f9bf517714b986a432a7594
Parent:     358352b8b83c67ecf75f6d7bc3e2d64bf0cf506a
Author:     Patrick McHardy <[EMAIL PROTECTED]>
AuthorDate: Sat Nov 10 21:51:40 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sat Nov 10 21:51:40 2007 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 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 1037748..0fadbc6 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,
                        if (!vlandev)
+                       flgs = vlandev->flags;
+                       if (!(flgs & IFF_UP))
+                               continue;
                        vlan_sync_address(dev, vlandev);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to