]> 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)
commit46a4fd2b7e73a45bb34ebbdda9b0df1c54d8776c
treee89c6388d42dbad5d1ac9b1ee65c0377190de01b
parent60d97997f20af4618dce2cce12e77164388ce024
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