vlan: allow to change type when no vlan device is hooked on netdev
authorJiri Pirko <jiri@resnulli.us>
Wed, 17 Oct 2012 01:37:36 +0000 (01:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2012 19:34:30 +0000 (15:34 -0400)
commit18c22a03a2187bcbda7d3a7fa1061584a6348e7b
tree4a6470d51268e35cca14a868e8a66786ae59d96c
parent0ca7111a38f053ae7b8829ee32fca6f9ef47550a
vlan: allow to change type when no vlan device is hooked on netdev

vlan_info might be present but still no vlan devices might be there.
That is in case of vlan0 automatically added.

So in that case, allow to change netdev type.

Reported-by: Jon Stanley <jstanley@rmrf.net>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c