]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i40e: stop flow director on shutdown
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 31 Mar 2015 07:45:04 +0000 (00:45 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Apr 2015 10:54:31 +0000 (03:54 -0700)
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>
drivers/net/ethernet/intel/i40e/i40e_main.c

index 15cee4d7ecf8d457c104a926cd737a0b0a8820cc..5e79054f2801f1fdd9157bfaea637c0bdf2f39ce 100644 (file)
@@ -10210,6 +10210,8 @@ static int i40e_suspend(struct pci_dev *pdev, pm_message_t state)
        set_bit(__I40E_DOWN, &pf->state);
        del_timer_sync(&pf->service_timer);
        cancel_work_sync(&pf->service_task);
+       i40e_fdir_teardown(pf);
+
        rtnl_lock();
        i40e_prep_for_reset(pf);
        rtnl_unlock();