diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-01-19 19:43:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-21 17:33:50 -0500 |
commit | 288379f050284087578b77e04f040b57db3db3f8 (patch) | |
tree | ac5f5c83e2778a1966327d87316fc94067363b45 /drivers/net/sfc | |
parent | 627af770c63acddc2402dd19fec70df5c3ad8ab7 (diff) |
net: Remove redundant NAPI functions
Following the removal of the unused struct net_device * parameter from
the NAPI functions named *netif_rx_* in commit 908a7a1, they are
exactly equivalent to the corresponding *napi_* functions and are
therefore redundant.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r-- | drivers/net/sfc/efx.c | 4 | ||||
-rw-r--r-- | drivers/net/sfc/efx.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 7673fd92eaf5..77aca5d67b57 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -225,11 +225,11 @@ static int efx_poll(struct napi_struct *napi, int budget) | |||
225 | 225 | ||
226 | if (rx_packets < budget) { | 226 | if (rx_packets < budget) { |
227 | /* There is no race here; although napi_disable() will | 227 | /* There is no race here; although napi_disable() will |
228 | * only wait for netif_rx_complete(), this isn't a problem | 228 | * only wait for napi_complete(), this isn't a problem |
229 | * since efx_channel_processed() will have no effect if | 229 | * since efx_channel_processed() will have no effect if |
230 | * interrupts have already been disabled. | 230 | * interrupts have already been disabled. |
231 | */ | 231 | */ |
232 | netif_rx_complete(napi); | 232 | napi_complete(napi); |
233 | efx_channel_processed(channel); | 233 | efx_channel_processed(channel); |
234 | } | 234 | } |
235 | 235 | ||
diff --git a/drivers/net/sfc/efx.h b/drivers/net/sfc/efx.h index 0dd7a532c78a..fb1ac0e63c0b 100644 --- a/drivers/net/sfc/efx.h +++ b/drivers/net/sfc/efx.h | |||
@@ -77,7 +77,7 @@ static inline void efx_schedule_channel(struct efx_channel *channel) | |||
77 | channel->channel, raw_smp_processor_id()); | 77 | channel->channel, raw_smp_processor_id()); |
78 | channel->work_pending = true; | 78 | channel->work_pending = true; |
79 | 79 | ||
80 | netif_rx_schedule(&channel->napi_str); | 80 | napi_schedule(&channel->napi_str); |
81 | } | 81 | } |
82 | 82 | ||
83 | #endif /* EFX_EFX_H */ | 83 | #endif /* EFX_EFX_H */ |