vlan: Match underlying dev carrier on vlan add
authorPhil Oester <kernel@linuxace.com>
Tue, 17 Aug 2010 18:45:08 +0000 (18:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 07:26:46 +0000 (00:26 -0700)
When adding a new vlan, if the underlying interface has no carrier,
then the newly added vlan interface should also have no carrier.
At present, this is not true - the newly added vlan is added with
carrier up.  Fix by checking state of real device.

Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found