projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d609d28
)
net: korina: use GRO
author
Roman Yeryomin
<leroi.lists@gmail.com>
Sun, 17 Sep 2017 17:24:50 +0000
(20:24 +0300)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/korina.c
b/drivers/net/ethernet/korina.c
index
c210add
..
5f36e17
100644
(file)
--- 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 */
- n
etif_receive_skb(
skb);
+ n
api_gro_receive(&lp->napi,
skb);
dev->stats.rx_packets++;
dev->stats.rx_bytes += pkt_len;