diff options
Diffstat (limited to 'drivers/net/ipg.c')
-rw-r--r-- | drivers/net/ipg.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c index 9f7b5d4172b8..63056e7b9e22 100644 --- a/drivers/net/ipg.c +++ b/drivers/net/ipg.c | |||
@@ -738,17 +738,12 @@ static int ipg_get_rxbuff(struct net_device *dev, int entry) | |||
738 | 738 | ||
739 | IPG_DEBUG_MSG("_get_rxbuff\n"); | 739 | IPG_DEBUG_MSG("_get_rxbuff\n"); |
740 | 740 | ||
741 | skb = netdev_alloc_skb(dev, sp->rxsupport_size + NET_IP_ALIGN); | 741 | skb = netdev_alloc_skb_ip_align(dev, sp->rxsupport_size); |
742 | if (!skb) { | 742 | if (!skb) { |
743 | sp->rx_buff[entry] = NULL; | 743 | sp->rx_buff[entry] = NULL; |
744 | return -ENOMEM; | 744 | return -ENOMEM; |
745 | } | 745 | } |
746 | 746 | ||
747 | /* Adjust the data start location within the buffer to | ||
748 | * align IP address field to a 16 byte boundary. | ||
749 | */ | ||
750 | skb_reserve(skb, NET_IP_ALIGN); | ||
751 | |||
752 | /* Associate the receive buffer with the IPG NIC. */ | 747 | /* Associate the receive buffer with the IPG NIC. */ |
753 | skb->dev = dev; | 748 | skb->dev = dev; |
754 | 749 | ||