i40e: remove irqs only when they are set up
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 23 Apr 2014 04:50:16 +0000 (04:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 6 Jun 2014 09:00:27 +0000 (02:00 -0700)
commit6374184672c8e405640ab57ea9ad1cb7ed4fa669
tree726ca9f7ee71246db4fa938e2d34ed2088418372
parent60442dea2e9314b472c772c76ed1b2ba5b961e02
i40e: remove irqs only when they are set up

Use an extra state variable to keep track of when the IRQs are fully
set up.  This keeps us from trying to unhook IRQs that already were
left unhooked in a failed reset recovery, e.g. when firmware is broken.

Change-ID: I073eb081e4ef8aedcbdf1ee0717c0ed64fa172f2
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c