Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8d83963 authored by hayeswang's avatar hayeswang Committed by David S. Miller
Browse files

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: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cef8a464
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;