projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f2cb71
)
sfc: Use proper function to test for RX channel in efx_poll()
author
Ben Hutchings
<bhutchings@solarflare.com>
Fri, 10 Feb 2012 23:01:48 +0000
(23:01 +0000)
committer
Ben Hutchings
<bhutchings@solarflare.com>
Thu, 16 Feb 2012 00:25:06 +0000
(
00:25
+0000)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/efx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sfc/efx.c
b/drivers/net/ethernet/sfc/efx.c
index ccfb43c9968d3073f76544a76ab9524c379976a1..eda2272bc4c0bafd6d67183cc0e41cf8e8886b28 100644
(file)
--- a/
drivers/net/ethernet/sfc/efx.c
+++ b/
drivers/net/ethernet/sfc/efx.c
@@
-279,7
+279,7
@@
static int efx_poll(struct napi_struct *napi, int budget)
spent = efx_process_channel(channel, budget);
if (spent < budget) {
- if (
channel->channel < efx->n_rx_channels
&&
+ if (
efx_channel_has_rx_queue(channel)
&&
efx->irq_rx_adaptive &&
unlikely(++channel->irq_count == 1000)) {
if (unlikely(channel->irq_mod_score <