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 c210add9b65451d75387de30849016ec8d1f2c66..5f36e1703378c30c1eb71781560cc81e9afec9fd 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;