summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/korina.c
diff options
context:
space:
mode:
authorRoman Yeryomin <leroi.lists@gmail.com>2017-09-17 20:24:50 +0300
committerDavid S. Miller <davem@davemloft.net>2017-09-18 16:50:06 -0700
commit247c78f2bed0c4d72c381c9caf429173513dcc51 (patch)
treef94049c8aab27f1460ec34ab97e75446702c2e9c /drivers/net/ethernet/korina.c
parentd609d2893c25a3336422d06e1aff50d13ba5b7f2 (diff)
downloadlinux-stable-247c78f2bed0c4d72c381c9caf429173513dcc51.tar.gz
linux-stable-247c78f2bed0c4d72c381c9caf429173513dcc51.tar.bz2
linux-stable-247c78f2bed0c4d72c381c9caf429173513dcc51.zip
net: korina: use GRO
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>
Diffstat (limited to 'drivers/net/ethernet/korina.c')
-rw-r--r--drivers/net/ethernet/korina.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c
index c210add9b654..5f36e1703378 100644
--- a/drivers/net/ethernet/korina.c
+++ b/drivers/net/ethernet/korina.c
@@ -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;