From: stephen hemminger Date: Tue, 24 Jan 2017 21:06:15 +0000 (-0800) Subject: netvsc: call netif_receive_skb X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1130383c174499826a3f01486e574e89be17e2d2;p=openwrt%2Fstaging%2Fblogic.git 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: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index fe0df72532a3..72b0c1f7496e 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -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;