]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: stop VF rings
authorMitch Williams <mitch.a.williams@intel.com>
Wed, 26 Aug 2015 19:14:09 +0000 (15:14 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:13 +0000 (08:32 -0800)
commit619247281c0f28a61abf7b8c83da33b81c3f3a7f
treec83a08137fc22b35d03c3f8b83d4708d3b575f23
parentf51270baf2809aedb0de2698db02924afd0b9cc8
i40e: stop VF rings

Orabug: 22342532

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>
(cherry picked from commit 0325fca7577c5157da2cdf064fc3e8d38242e47c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c