diff options
author | Patrick McHardy <kaber@trash.net> | 2009-11-25 07:54:54 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-26 16:00:36 -0800 |
commit | 5e7565930524410f097f5b04f8aba663089a6ffc (patch) | |
tree | 7575fb4b06fdad1e2e9796e0dc99ca011e59980e /net/8021q/vlan_netlink.c | |
parent | cc83f6d6922018a1b762f67af539867a6b05398e (diff) | |
download | op-kernel-dev-5e7565930524410f097f5b04f8aba663089a6ffc.zip op-kernel-dev-5e7565930524410f097f5b04f8aba663089a6ffc.tar.gz |
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>
Diffstat (limited to 'net/8021q/vlan_netlink.c')
-rw-r--r-- | net/8021q/vlan_netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/8021q/vlan_netlink.c b/net/8021q/vlan_netlink.c index 3c9cf6a8..ddc1057 100644 --- a/net/8021q/vlan_netlink.c +++ b/net/8021q/vlan_netlink.c @@ -60,7 +60,8 @@ static int vlan_validate(struct nlattr *tb[], struct nlattr *data[]) if (data[IFLA_VLAN_FLAGS]) { flags = nla_data(data[IFLA_VLAN_FLAGS]); if ((flags->flags & flags->mask) & - ~(VLAN_FLAG_REORDER_HDR | VLAN_FLAG_GVRP)) + ~(VLAN_FLAG_REORDER_HDR | VLAN_FLAG_GVRP | + VLAN_FLAG_LOOSE_BINDING)) return -EINVAL; } |