mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 02:23:16 +00:00
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 <hayeswang@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
da9bd117ff
commit
9d9aafa1e8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user