提交 247c78f2 编写于 作者: R Roman Yeryomin 提交者: David S. Miller

net: korina: use GRO

Performance gain when receiving locally is 55->95Mbps and 50->65Mbps for NAT.
Signed-off-by: NRoman Yeryomin <roman@advem.lv>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d609d289
...@@ -406,7 +406,7 @@ static int korina_rx(struct net_device *dev, int limit) ...@@ -406,7 +406,7 @@ static int korina_rx(struct net_device *dev, int limit)
skb->protocol = eth_type_trans(skb, dev); skb->protocol = eth_type_trans(skb, dev);
/* Pass the packet to upper layers */ /* Pass the packet to upper layers */
netif_receive_skb(skb); napi_gro_receive(&lp->napi, skb);
dev->stats.rx_packets++; dev->stats.rx_packets++;
dev->stats.rx_bytes += pkt_len; dev->stats.rx_bytes += pkt_len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册