OSDN Git Service

net: korina: use GRO
authorRoman Yeryomin <leroi.lists@gmail.com>
Sun, 17 Sep 2017 17:24:50 +0000 (20:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Sep 2017 23:50:06 +0000 (16:50 -0700)
Performance gain when receiving locally is 55->95Mbps and 50->65Mbps for NAT.

Signed-off-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/korina.c

index c210add..5f36e17 100644 (file)
@@ -406,7 +406,7 @@ static int korina_rx(struct net_device *dev, int limit)
                skb->protocol = eth_type_trans(skb, dev);
 
                /* Pass the packet to upper layers */
-               netif_receive_skb(skb);
+               napi_gro_receive(&lp->napi, skb);
                dev->stats.rx_packets++;
                dev->stats.rx_bytes += pkt_len;