]> 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)
commit5120cd9acc74211f5975e0a6f60c669b94d82e1b
tree4d5b6d4ffea64c6a802ef887709cdcff16747733
parentdd74a54d1b3c8cc6157ec0f221d26df8aec23f74
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