From: hayeswang Date: Tue, 18 Feb 2014 13:49:09 +0000 (+0800) Subject: r8152: replace netif_rx with netif_receive_skb X-Git-Tag: firefly_0821_release~176^2~4167^2~314^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9d9aafa1e8dd785d0b2e5e75e4cbbe56b13907d3;p=firefly-linux-kernel-4.4.55.git r8152: replace netif_rx with netif_receive_skb Replace netif_rx with netif_receive_skb to avoid disabling irq frequently for increasing the efficiency. Signed-off-by: Hayes Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 3ff11ed6ee51..ff02d5d8ec41 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1464,7 +1464,7 @@ static void rx_bottom(struct r8152 *tp) memcpy(skb->data, rx_data, pkt_len); skb_put(skb, pkt_len); skb->protocol = eth_type_trans(skb, netdev); - netif_rx(skb); + netif_receive_skb(skb); stats->rx_packets++; stats->rx_bytes += pkt_len;