]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: stop VF rings
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 7 Apr 2015 18:32:55 +0000 (11:32 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 14 Apr 2015 23:54:09 +0000 (16:54 -0700)
commitaf71e42b2c4ffe3e3c37aa2fe556283e22aa84f4
tree4d5b6d4ffea64c6a802ef887709cdcff16747733
parent4b8f28eadd41a6ddaa90acece9929a9945ee734e
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.

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_virtchnl_pf.c