net: mv643xx_eth: Add GRO support
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Thu, 11 Apr 2013 02:40:23 +0000 (02:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2013 20:21:57 +0000 (16:21 -0400)
This patch adds GRO support to mv643xx_eth by making it invoke
napi_gro_receive instead of netif_receive_skb.

Signed-off-by: Soeren Moch <smoch@web.de>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c

index 305038f48176211b15811074a2026b8201c12cf0..c850d0475c28ebc72cb326b04ff748aff91808d2 100644 (file)
@@ -604,7 +604,7 @@ static int rxq_process(struct rx_queue *rxq, int budget)
                        lro_receive_skb(&rxq->lro_mgr, skb, (void *)cmd_sts);
                        lro_flush_needed = 1;
                } else
-                       netif_receive_skb(skb);
+                       napi_gro_receive(&mp->napi, skb);
 
                continue;