]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/i40evf: check for stopped admin queue
authorMitch Williams <mitch.a.williams@intel.com>
Tue, 29 Sep 2015 00:31:26 +0000 (17:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 03:57:14 +0000 (20:57 -0700)
commit4ada3429e0be59c220c72edf18b2f2f64523c683
treee89c6388d42dbad5d1ac9b1ee65c0377190de01b
parent5c5aa6b38c700447762ca73958425e3903b38a6d
i40e/i40evf: check for stopped admin queue

It's possible that while we are waiting for the spinlock, another
entity (that owns the spinlock) has shut down the admin queue.
If we then attempt to use the queue, we will panic.

Add a check for this condition on the receive side. This matches
an existing check on the send queue side.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_adminq.c
drivers/net/ethernet/intel/i40evf/i40e_adminq.c