diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2013-05-01 11:30:17 -0400 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-08-29 13:12:11 -0400 |
commit | 15acb1cea5d9298eac511b80380183be624fa31c (patch) | |
tree | 981830689aeb7b058dcdf9814ad16047159cca8f | |
parent | c15eed220fd1dd31d7ad2e4893b679331e6f1e74 (diff) |
sfc: Initialise IRQ moderation for all NIC types from efx_init_eventq()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/sfc/farch.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 59aa73ccefed..aec62139420e 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c | |||
@@ -331,15 +331,17 @@ static int efx_probe_eventq(struct efx_channel *channel) | |||
331 | /* Prepare channel's event queue */ | 331 | /* Prepare channel's event queue */ |
332 | static int efx_init_eventq(struct efx_channel *channel) | 332 | static int efx_init_eventq(struct efx_channel *channel) |
333 | { | 333 | { |
334 | struct efx_nic *efx = channel->efx; | ||
334 | int rc; | 335 | int rc; |
335 | 336 | ||
336 | EFX_WARN_ON_PARANOID(channel->eventq_init); | 337 | EFX_WARN_ON_PARANOID(channel->eventq_init); |
337 | 338 | ||
338 | netif_dbg(channel->efx, drv, channel->efx->net_dev, | 339 | netif_dbg(efx, drv, efx->net_dev, |
339 | "chan %d init event queue\n", channel->channel); | 340 | "chan %d init event queue\n", channel->channel); |
340 | 341 | ||
341 | rc = efx_nic_init_eventq(channel); | 342 | rc = efx_nic_init_eventq(channel); |
342 | if (rc == 0) { | 343 | if (rc == 0) { |
344 | efx->type->push_irq_moderation(channel); | ||
343 | channel->eventq_read_ptr = 0; | 345 | channel->eventq_read_ptr = 0; |
344 | channel->eventq_init = true; | 346 | channel->eventq_init = true; |
345 | } | 347 | } |
diff --git a/drivers/net/ethernet/sfc/farch.c b/drivers/net/ethernet/sfc/farch.c index 904af5c336b4..eb754cfff1ef 100644 --- a/drivers/net/ethernet/sfc/farch.c +++ b/drivers/net/ethernet/sfc/farch.c | |||
@@ -1357,8 +1357,6 @@ int efx_farch_ev_init(struct efx_channel *channel) | |||
1357 | efx_writeo_table(efx, ®, efx->type->evq_ptr_tbl_base, | 1357 | efx_writeo_table(efx, ®, efx->type->evq_ptr_tbl_base, |
1358 | channel->channel); | 1358 | channel->channel); |
1359 | 1359 | ||
1360 | efx->type->push_irq_moderation(channel); | ||
1361 | |||
1362 | return 0; | 1360 | return 0; |
1363 | } | 1361 | } |
1364 | 1362 | ||