i40e/i40evf: grab the AQ spinlocks before clearing registers
authorShannon Nelson <shannon.nelson@intel.com>
Mon, 28 Sep 2015 18:12:38 +0000 (14:12 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 4 Oct 2015 02:23:47 +0000 (19:23 -0700)
commit24408e7ae677cea4e44ce6869a1b803820839471
treea8baf00628016d61ddc1193ecdb82a71cd1209e9
parent126b63d9d3aa99a90381ed168a885989dd33cf15
i40e/i40evf: grab the AQ spinlocks before clearing registers

Make sure we have the spinlocks before we clear the ARQ and ASQ management
registers.  Also, widen the locked portion and make a sanity check earlier
in the send function to be sure we're working with safe register values.

Change-ID: I34b56044b33461ed780f3d2de8d62826cdf933f9
Signed-off-by: Shannon Nelson <shannon.nelson@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_adminq.c
drivers/net/ethernet/intel/i40evf/i40e_adminq.c