GRO: Disable GRO on legacy netif_rx path
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 26 Mar 2009 07:59:10 +0000 (00:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2009 05:24:28 +0000 (22:24 -0700)
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>
net/core/dev.c

index 052dd478d3e112b769b66ab83db5b82996d88061..63ec4bf89b2914a5a3a271c14b16d4833c7d53ce 100644 (file)
@@ -2627,18 +2627,15 @@ static int process_backlog(struct napi_struct *napi, int quota)
                local_irq_disable();
                skb = __skb_dequeue(&queue->input_pkt_queue);
                if (!skb) {
+                       __napi_complete(napi);
                        local_irq_enable();
-                       napi_complete(napi);
-                       goto out;
+                       break;
                }
                local_irq_enable();
 
-               napi_gro_receive(napi, skb);
+               netif_receive_skb(skb);
        } while (++work < quota && jiffies == start_time);
 
-       napi_gro_flush(napi);
-
-out:
        return work;
 }