projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
358352b
)
[VLAN]: Don't synchronize addresses while the vlan device is down
author
Patrick McHardy
<kaber@trash.net>
Sun, 11 Nov 2007 05:51:40 +0000
(21:51 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 11 Nov 2007 05:51:40 +0000
(21:51 -0800)
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>
net/8021q/vlan.c
patch
|
blob
|
blame
|
history
diff --git
a/net/8021q/vlan.c
b/net/8021q/vlan.c
index 1037748c14db0dbaee28ed4709eed462061a68d8..0fadbc6fbc3f504c0c2cb4064fe3d2730ced8e6b 100644
(file)
--- 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)
continue;
+ flgs = vlandev->flags;
+ if (!(flgs & IFF_UP))
+ continue;
+
vlan_sync_address(dev, vlandev);
}
break;