From: hayeswang Date: Wed, 8 Jun 2016 06:52:33 +0000 (+0800) Subject: r8152: replace netdev_alloc_skb_ip_align with napi_alloc_skb X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8d83963709ea69f7433c7b4fe3e8c3a4288458a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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;