diff options
Diffstat (limited to 'drivers/net/igb/igb_main.c')
-rw-r--r-- | drivers/net/igb/igb_main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 428d50475351..2ffe0997b838 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -4934,18 +4934,12 @@ static void igb_alloc_rx_buffers_adv(struct igb_ring *rx_ring, | |||
4934 | } | 4934 | } |
4935 | 4935 | ||
4936 | if (!buffer_info->skb) { | 4936 | if (!buffer_info->skb) { |
4937 | skb = netdev_alloc_skb(netdev, bufsz + NET_IP_ALIGN); | 4937 | skb = netdev_alloc_skb_ip_align(netdev, bufsz); |
4938 | if (!skb) { | 4938 | if (!skb) { |
4939 | adapter->alloc_rx_buff_failed++; | 4939 | adapter->alloc_rx_buff_failed++; |
4940 | goto no_buffers; | 4940 | goto no_buffers; |
4941 | } | 4941 | } |
4942 | 4942 | ||
4943 | /* Make buffer alignment 2 beyond a 16 byte boundary | ||
4944 | * this will result in a 16 byte aligned IP header after | ||
4945 | * the 14 byte MAC header is removed | ||
4946 | */ | ||
4947 | skb_reserve(skb, NET_IP_ALIGN); | ||
4948 | |||
4949 | buffer_info->skb = skb; | 4943 | buffer_info->skb = skb; |
4950 | buffer_info->dma = pci_map_single(pdev, skb->data, | 4944 | buffer_info->dma = pci_map_single(pdev, skb->data, |
4951 | bufsz, | 4945 | bufsz, |