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)
commit43ae93a93e8c95c5e6389dc8e11704712b1ab2e9
treee89c6388d42dbad5d1ac9b1ee65c0377190de01b
parentc4bbac3913c0d649898a0d767728a585869a7d7d
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