diff options
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r-- | drivers/net/r8169.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 50c6a3cfe439..97b170448ce6 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -3555,13 +3555,12 @@ static inline bool rtl8169_try_rx_copy(struct sk_buff **sk_buff, | |||
3555 | if (pkt_size >= rx_copybreak) | 3555 | if (pkt_size >= rx_copybreak) |
3556 | goto out; | 3556 | goto out; |
3557 | 3557 | ||
3558 | skb = netdev_alloc_skb(tp->dev, pkt_size + NET_IP_ALIGN); | 3558 | skb = netdev_alloc_skb_ip_align(tp->dev, pkt_size); |
3559 | if (!skb) | 3559 | if (!skb) |
3560 | goto out; | 3560 | goto out; |
3561 | 3561 | ||
3562 | pci_dma_sync_single_for_cpu(tp->pci_dev, addr, pkt_size, | 3562 | pci_dma_sync_single_for_cpu(tp->pci_dev, addr, pkt_size, |
3563 | PCI_DMA_FROMDEVICE); | 3563 | PCI_DMA_FROMDEVICE); |
3564 | skb_reserve(skb, NET_IP_ALIGN); | ||
3565 | skb_copy_from_linear_data(*sk_buff, skb->data, pkt_size); | 3564 | skb_copy_from_linear_data(*sk_buff, skb->data, pkt_size); |
3566 | *sk_buff = skb; | 3565 | *sk_buff = skb; |
3567 | done = true; | 3566 | done = true; |