Skip to content

Commit

Permalink
netvsc: call netif_receive_skb
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Jan 24, 2017
1 parent b58a185 commit 1130383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hyperv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1130383

Please sign in to comment.