提交 15acb1ce 编写于 作者: B Ben Hutchings

sfc: Initialise IRQ moderation for all NIC types from efx_init_eventq()

Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
上级 c15eed22
...@@ -331,15 +331,17 @@ static int efx_probe_eventq(struct efx_channel *channel) ...@@ -331,15 +331,17 @@ static int efx_probe_eventq(struct efx_channel *channel)
/* Prepare channel's event queue */ /* Prepare channel's event queue */
static int efx_init_eventq(struct efx_channel *channel) static int efx_init_eventq(struct efx_channel *channel)
{ {
struct efx_nic *efx = channel->efx;
int rc; int rc;
EFX_WARN_ON_PARANOID(channel->eventq_init); 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); "chan %d init event queue\n", channel->channel);
rc = efx_nic_init_eventq(channel); rc = efx_nic_init_eventq(channel);
if (rc == 0) { if (rc == 0) {
efx->type->push_irq_moderation(channel);
channel->eventq_read_ptr = 0; channel->eventq_read_ptr = 0;
channel->eventq_init = true; channel->eventq_init = true;
} }
......
...@@ -1357,8 +1357,6 @@ int efx_farch_ev_init(struct efx_channel *channel) ...@@ -1357,8 +1357,6 @@ int efx_farch_ev_init(struct efx_channel *channel)
efx_writeo_table(efx, &reg, efx->type->evq_ptr_tbl_base, efx_writeo_table(efx, &reg, efx->type->evq_ptr_tbl_base,
channel->channel); channel->channel);
efx->type->push_irq_moderation(channel);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册