netvsc: call netif_receive_skb
authorstephen hemminger <stephen@networkplumber.org>
Tue, 24 Jan 2017 21:06:15 +0000 (13:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 21:29:02 +0000 (16:29 -0500)
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 <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c

index fe0df72532a3c1d8a73afba1b44012532f18dd58..72b0c1f7496ee23a459cba2365ce550cabde4903 100644 (file)
@@ -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;