diff options
author | Chris Zankel <chris@zankel.net> | 2009-04-03 05:29:05 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2009-04-03 05:29:05 -0400 |
commit | 65127d28e312bb6b38ce84a7bb71d762ef63ad4c (patch) | |
tree | d5fdf52a2d0731f7fab0ce0ed394faac50b04fbc /drivers/net/sfc/efx.c | |
parent | b8bb76713ec50df2f11efee386e16f93d51e1076 (diff) | |
parent | 8fe74cf053de7ad2124a894996f84fa890a81093 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into merge
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r-- | drivers/net/sfc/efx.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 00c23b1babca..dee23b159df2 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -448,6 +448,9 @@ static void efx_init_channels(struct efx_nic *efx) | |||
448 | 448 | ||
449 | WARN_ON(channel->rx_pkt != NULL); | 449 | WARN_ON(channel->rx_pkt != NULL); |
450 | efx_rx_strategy(channel); | 450 | efx_rx_strategy(channel); |
451 | |||
452 | netif_napi_add(channel->napi_dev, &channel->napi_str, | ||
453 | efx_poll, napi_weight); | ||
451 | } | 454 | } |
452 | } | 455 | } |
453 | 456 | ||
@@ -462,10 +465,6 @@ static void efx_start_channel(struct efx_channel *channel) | |||
462 | 465 | ||
463 | EFX_LOG(channel->efx, "starting chan %d\n", channel->channel); | 466 | EFX_LOG(channel->efx, "starting chan %d\n", channel->channel); |
464 | 467 | ||
465 | if (!(channel->efx->net_dev->flags & IFF_UP)) | ||
466 | netif_napi_add(channel->napi_dev, &channel->napi_str, | ||
467 | efx_poll, napi_weight); | ||
468 | |||
469 | /* The interrupt handler for this channel may set work_pending | 468 | /* The interrupt handler for this channel may set work_pending |
470 | * as soon as we enable it. Make sure it's cleared before | 469 | * as soon as we enable it. Make sure it's cleared before |
471 | * then. Similarly, make sure it sees the enabled flag set. */ | 470 | * then. Similarly, make sure it sees the enabled flag set. */ |