vlan: support "loose binding" to the underlying network device
authorPatrick McHardy <kaber@trash.net>
Wed, 25 Nov 2009 07:54:54 +0000 (07:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Nov 2009 00:00:36 +0000 (16:00 -0800)
commit5e7565930524410f097f5b04f8aba663089a6ffc
tree7575fb4b06fdad1e2e9796e0dc99ca011e59980e
parentcc83f6d6922018a1b762f67af539867a6b05398e
vlan: support "loose binding" to the underlying network device

Currently the UP/DOWN state of VLANs is synchronized to the state of the
underlying device, meaning all VLANs are set down once the underlying
device is set down. This causes all routes to the VLAN devices to vanish.

Add a flag to specify a "loose binding" mode, in which only the operstate
is transfered, but the VLAN device state is independant.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h
net/8021q/vlan.c
net/8021q/vlan_dev.c
net/8021q/vlan_netlink.c