]> git.karo-electronics.de Git - mv-sheeva.git/commit
vlan: allow creating vlan when real device is not up
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 30 Jul 2009 20:16:45 +0000 (13:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2009 20:16:45 +0000 (13:16 -0700)
commitb4076d1715b8a38138db0805a85932b3b650d583
tree3b7ab6f84953f16a8ea8bed8aa40617e71308fad
parent573dd788ccd919f90c78f971c0da124ffa4b8bff
vlan: allow creating vlan when real device is not up

There is no reason for the arbitrary restriction that device must be
up to create a vlan. This patch was added to Vyatta kernel to resolve startup
ordering issues where vlan's are created but real device was disabled.

Note: the vlan already correctly inherits the operstate from real device; so
if vlan is created and real device is marked down, the vlan is marked
down.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c