vlan: Invoke driver vlan hooks only if device is present
authorPadmanabh Ratnakar <padmanabh.ratnakar@avagotech.com>
Tue, 3 Nov 2015 14:55:59 +0000 (20:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2015 16:29:56 +0000 (11:29 -0500)
commit74f2d19caff885bc656e9acf2a6e727b66ab0ed1
tree0d056329707ce290142860ca6095f08e788f9a34
parent754107e34165373b3696620cef344227b10eaa99
vlan: Invoke driver vlan hooks only if device is present

NIC drivers mark device as detached during error recovery.
It expects no manangement hooks to be invoked in this state.
Invoke driver vlan hooks only if device is present.

Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c