aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2015-03-31 03:45:04 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-04-03 06:54:31 -0400
commit3932dbfe1ecdcf05578cc6aca7ca1b6c6dbd311e (patch)
tree126f1c550d634c023d5c7c6f0ad7cd29ec02d1c9 /drivers/net/ethernet/intel/i40e
parentc22c06c8d1b62cd2a42a8f276c7e72bc17067183 (diff)
i40e: stop flow director on shutdown
In some cases, the hardware would continue to try to access the FDIR ring after entering D3Hot state, which would cause either PCIe errors or NMIs, depending upon system configuration. Explicitly stop FDIR in our shutdown routine to eliminate this possibility. Change-ID: Ib98060d6352ec595ab9a78bfe252675a9fa5d8bc Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Jim Young <james.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 15cee4d7ecf8..5e79054f2801 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -10210,6 +10210,8 @@ static int i40e_suspend(struct pci_dev *pdev, pm_message_t state)
10210 set_bit(__I40E_DOWN, &pf->state); 10210 set_bit(__I40E_DOWN, &pf->state);
10211 del_timer_sync(&pf->service_timer); 10211 del_timer_sync(&pf->service_timer);
10212 cancel_work_sync(&pf->service_task); 10212 cancel_work_sync(&pf->service_task);
10213 i40e_fdir_teardown(pf);
10214
10213 rtnl_lock(); 10215 rtnl_lock();
10214 i40e_prep_for_reset(pf); 10216 i40e_prep_for_reset(pf);
10215 rtnl_unlock(); 10217 rtnl_unlock();