]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: update vlan carrier state for admin up/down
authorJay Vosburgh <fubar@us.ibm.com>
Sun, 26 Apr 2009 01:03:35 +0000 (18:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Apr 2009 01:03:35 +0000 (18:03 -0700)
commit07014a70d6c07e1ed9a75325a8363ab669cf4291
tree4a1267f1d2aa44893e2dc6c779ae686a01db409d
parentad3f078c85954f23f7f84be6e10171f771f92e2b
vlan: update vlan carrier state for admin up/down

Currently, the VLAN event handler does not adjust the VLAN
device's carrier state when the real device or the VLAN device is set
administratively up or down.

The following patch adds a transfer of operating state from the
real device to the VLAN device when the real device is administratively
set up or down, and sets the carrier state up or down during init, open
and close of the VLAN device.

This permits observers above the VLAN device that care about the
carrier state (bonding's link monitor, for example) to receive updates
for administrative changes by more closely mimicing the behavior of real
devices.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/8021q/vlan.c
net/8021q/vlan_dev.c