i40e/base: grab AQ spinlocks before clearing registers
authorJingjing Wu <jingjing.wu@intel.com>
Sun, 6 Sep 2015 07:11:21 +0000 (15:11 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 1 Oct 2015 23:35:21 +0000 (01:35 +0200)
commitfb6791c2e73875ae5246e685d45f8b15c5b1a619
tree3a4c56268d183c3f41a46658601966281e526fde
parent842ea1996335c226ee89b680dac0c6c9912bdcbb
i40e/base: grab 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.

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Tested-by: Huilong Xu <huilongx.xu@intel.com>
drivers/net/i40e/base/i40e_adminq.c