aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-10-08 18:21:51 +0100
committerBen Hutchings <bhutchings@solarflare.com>2013-08-21 20:20:45 +0100
commitbe3fc09cdd4aca438613b1d50d00afa77e9b2046 (patch)
tree85445ebbceb5af8c1faa7deaf7b545f11c82cc93 /drivers/net/ethernet/sfc/net_driver.h
parentsfc: EFX_WORKAROUND_ALWAYS is really specific to Falcon-architecture (diff)
downloadlinux-dev-be3fc09cdd4aca438613b1d50d00afa77e9b2046.tar.xz
linux-dev-be3fc09cdd4aca438613b1d50d00afa77e9b2046.zip
sfc: Do not assume efx_nic_type::ev_fini is idempotent
efx_fini_eventq() needs to be idempotent but EF10 firmware is picky about queue states. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/sfc/net_driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
index 7aa0e0f4f0c6..694c572a3bf5 100644
--- a/drivers/net/ethernet/sfc/net_driver.h
+++ b/drivers/net/ethernet/sfc/net_driver.h
@@ -356,6 +356,7 @@ enum efx_rx_alloc_method {
* @efx: Associated Efx NIC
* @channel: Channel instance number
* @type: Channel type definition
+ * @eventq_init: Event queue initialised flag
* @enabled: Channel enabled indicator
* @irq: IRQ number (MSI and MSI-X only)
* @irq_moderation: IRQ moderation value (in hardware ticks)
@@ -387,6 +388,7 @@ struct efx_channel {
struct efx_nic *efx;
int channel;
const struct efx_channel_type *type;
+ bool eventq_init;
bool enabled;
int irq;
unsigned int irq_moderation;