aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-03-26 03:59:10 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-27 01:24:28 -0400
commit8f1ead2d1a626ed0c85b3d2c2046a49081d5933f (patch)
tree4bb6e9672a6ec13bb2388f535642d374d4353eb6 /net/core/dev.c
parentbe0ea69674ed95e1e98cb3687a241badc756d228 (diff)
GRO: Disable GRO on legacy netif_rx path
When I fixed the GRO crash in the legacy receive path I used napi_complete to replace __napi_complete. Unfortunately they're not the same when NETPOLL is enabled, which may result in us not calling __napi_complete at all. What's more, we really do need to keep the __napi_complete call within the IRQ-off section since in theory an IRQ can occur in between and fill up the backlog to the maximum, causing us to lock up. Since we can't seem to find a fix that works properly right now, this patch reverts all the GRO support from the netif_rx path. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 052dd478d3e1..63ec4bf89b29 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2627,18 +2627,15 @@ static int process_backlog(struct napi_struct *napi, int quota)
2627 local_irq_disable(); 2627 local_irq_disable();
2628 skb = __skb_dequeue(&queue->input_pkt_queue); 2628 skb = __skb_dequeue(&queue->input_pkt_queue);
2629 if (!skb) { 2629 if (!skb) {
2630 __napi_complete(napi);
2630 local_irq_enable(); 2631 local_irq_enable();
2631 napi_complete(napi); 2632 break;
2632 goto out;
2633 } 2633 }
2634 local_irq_enable(); 2634 local_irq_enable();
2635 2635
2636 napi_gro_receive(napi, skb); 2636 netif_receive_skb(skb);
2637 } while (++work < quota && jiffies == start_time); 2637 } while (++work < quota && jiffies == start_time);
2638 2638
2639 napi_gro_flush(napi);
2640
2641out:
2642 return work; 2639 return work;
2643} 2640}
2644 2641