Sfoglia il codice sorgente

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 <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
stephen hemminger 8 anni fa
parent
commit
1130383c17
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/net/hyperv/netvsc_drv.c

+ 1 - 1
drivers/net/hyperv/netvsc_drv.c

@@ -695,7 +695,7 @@ int netvsc_recv_callback(struct net_device *net,
 	 * is done.
 	 * is done.
 	 * TODO - use NAPI?
 	 * TODO - use NAPI?
 	 */
 	 */
-	netif_rx(skb);
+	netif_receive_skb(skb);
 	rcu_read_unlock();
 	rcu_read_unlock();
 
 
 	return 0;
 	return 0;