ixgbe: Fix rcu warnings induced by LER
authorMark Rustad <mark.d.rustad@intel.com>
Wed, 12 Mar 2014 00:38:35 +0000 (00:38 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 31 Mar 2014 22:48:03 +0000 (15:48 -0700)
commit41c62843eb6a0ea3e2f1e06ca3ec7b2f64452f7b
treede994b24163c5e42a9e75fd8d750eb090856e5e5
parent75009b3a88cd8f56315eb4ced296ee2f060cf946
ixgbe: 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/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c