提交 1130383c 编写于 作者: S stephen hemminger 提交者: David S. Miller

netvsc: call netif_receive_skb

To improve performance, netvsc can call network stack directly and
avoid the local backlog queue. This is safe since incoming packets are
handled in softirq context already because the receive function
callback is called from a tasklet.
Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b58a1858
......@@ -695,7 +695,7 @@ int netvsc_recv_callback(struct net_device *net,
* is done.
* TODO - use NAPI?
*/
netif_rx(skb);
netif_receive_skb(skb);
rcu_read_unlock();
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册