diff options
author | hayeswang <hayeswang@realtek.com> | 2014-02-18 17:49:09 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-19 01:40:02 +0400 |
commit | 9d9aafa1e8dd785d0b2e5e75e4cbbe56b13907d3 (patch) | |
tree | ffdb8e0aca34a2f9613fa4c12826a0ba098c9b6e /drivers/net/usb | |
parent | da9bd117ffbf0eb10c9a9a3278c96e003293977a (diff) | |
download | linux-9d9aafa1e8dd785d0b2e5e75e4cbbe56b13907d3.tar.xz |
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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/r8152.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |