]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: stop VF rings
authorMitch Williams <mitch.a.williams@intel.com>
Wed, 26 Aug 2015 19:14:09 +0000 (15:14 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 7 Oct 2015 20:31:20 +0000 (13:31 -0700)
commit16c7925ba5d759f1e6d917fdbc57f6215a3764bc
treecc2ac5e07000b95d72226d9026f554ff4750b325
parent06cf67621c142a290821393267ca9e2392c931ea
i40e: stop VF rings

Explicitly stop the rings belonging to each VF when disabling SR-IOV.
Even though the VFs were gone, and the associated VSIs were removed, the
rings were not stopped, and in some circumstances the hardware would
continue to access the memory formerly used by the rings, causing memory
corruption or DMAR errors, both of which would lead to general malaise
of the kernel.

To relieve this condition, explicitly stop all the rings associated with
each VF before releasing its resources.

Change-ID: I78c05d562c66e7b594b7e48d67860f49b3e5b6ec
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c