Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143458
b: refs/heads/master
c: 718cff1
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Apr 15, 2009
1 parent 6241e5d commit 64c33b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2690f8d62e98779c71625dba9a0fd525d8b2263d
refs/heads/master: 718cff1eec595ce6ab0635b8160a51ee37d9268d
7 changes: 4 additions & 3 deletions trunk/drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,6 @@ static void efx_init_channels(struct efx_nic *efx)

WARN_ON(channel->rx_pkt != NULL);
efx_rx_strategy(channel);

netif_napi_add(channel->napi_dev, &channel->napi_str,
efx_poll, napi_weight);
}
}

Expand Down Expand Up @@ -1321,6 +1318,8 @@ static int efx_init_napi(struct efx_nic *efx)

efx_for_each_channel(channel, efx) {
channel->napi_dev = efx->net_dev;
netif_napi_add(channel->napi_dev, &channel->napi_str,
efx_poll, napi_weight);
}
return 0;
}
Expand All @@ -1330,6 +1329,8 @@ static void efx_fini_napi(struct efx_nic *efx)
struct efx_channel *channel;

efx_for_each_channel(channel, efx) {
if (channel->napi_dev)
netif_napi_del(&channel->napi_str);
channel->napi_dev = NULL;
}
}
Expand Down

0 comments on commit 64c33b8

Please sign in to comment.