diff options
author | hayeswang <hayeswang@realtek.com> | 2016-06-08 14:52:33 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-09 23:38:19 -0700 |
commit | c8d83963709ea69f7433c7b4fe3e8c3a4288458a (patch) | |
tree | 47b8e3b6eb3110377bf4b8b7501a497bda23476e /drivers/net/usb | |
parent | cef8a464c60799a09162e3f8f47b55a6bfeb381b (diff) | |
download | linux-c8d83963709ea69f7433c7b4fe3e8c3a4288458a.tar.gz linux-c8d83963709ea69f7433c7b4fe3e8c3a4288458a.tar.bz2 linux-c8d83963709ea69f7433c7b4fe3e8c3a4288458a.zip |
r8152: replace netdev_alloc_skb_ip_align with napi_alloc_skb
Replace netdev_alloc_skb_ip_align() with napi_alloc_skb() which can save
several CPU cycles by avoiding having to disable and re-enable IRQs.
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 3f9f6ed3eec4..161c25e18865 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -1742,7 +1742,7 @@ static int rx_bottom(struct r8152 *tp, int budget) pkt_len -= CRC_SIZE; rx_data += sizeof(struct rx_desc); - skb = netdev_alloc_skb_ip_align(netdev, pkt_len); + skb = napi_alloc_skb(&tp->napi, pkt_len); if (!skb) { stats->rx_dropped++; goto find_next_rx; |