]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
r8152: replace netif_rx with netif_receive_skb
authorhayeswang <hayeswang@realtek.com>
Tue, 18 Feb 2014 13:49:09 +0000 (21:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Feb 2014 21:40:02 +0000 (16:40 -0500)
Replace netif_rx with netif_receive_skb to avoid disabling irq frequently
for increasing the efficiency.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index 3ff11ed6ee516bbd6899a202936929a78c09449f..ff02d5d8ec4143945bbe0a3d54ec1bc4e4ad773b 100644 (file)
@@ -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;