ixgbevf: Fix rcu warnings induced by LER
authorMark Rustad <mark.d.rustad@intel.com>
Wed, 12 Mar 2014 00:38:45 +0000 (00:38 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 31 Mar 2014 22:48:03 +0000 (15:48 -0700)
commitbc0c715167c68ac2e737e221a80fc2a413f48155
tree85abedb87258ef964615a61ea661fcd5a719331c
parent41c62843eb6a0ea3e2f1e06ca3ec7b2f64452f7b
ixgbevf: Fix rcu warnings induced by LER

Resolve some rcu warnings produced when LER actions take place.
This appears to be due to not holding the rtnl lock when calling
ixgbe_down, so hold the lock. Also avoid disabling the device
when it is already disabled. This check is necessary because the
callback can be called more than once in some cases.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c