Skip to content

Commit

Permalink
sfc: Initialise IRQ moderation for all NIC types from efx_init_eventq()
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
  • Loading branch information
Ben Hutchings committed Aug 29, 2013
1 parent c15eed2 commit 15acb1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,17 @@ static int efx_probe_eventq(struct efx_channel *channel)
/* Prepare channel's event queue */
static int efx_init_eventq(struct efx_channel *channel)
{
struct efx_nic *efx = channel->efx;
int rc;

EFX_WARN_ON_PARANOID(channel->eventq_init);

netif_dbg(channel->efx, drv, channel->efx->net_dev,
netif_dbg(efx, drv, efx->net_dev,
"chan %d init event queue\n", channel->channel);

rc = efx_nic_init_eventq(channel);
if (rc == 0) {
efx->type->push_irq_moderation(channel);
channel->eventq_read_ptr = 0;
channel->eventq_init = true;
}
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/ethernet/sfc/farch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,6 @@ int efx_farch_ev_init(struct efx_channel *channel)
efx_writeo_table(efx, &reg, efx->type->evq_ptr_tbl_base,
channel->channel);

efx->type->push_irq_moderation(channel);

return 0;
}

Expand Down

0 comments on commit 15acb1c

Please sign in to comment.