aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ipg.c')
-rw-r--r--drivers/net/ipg.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c
index 9f7b5d4172b8..ba8d246d05a0 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
@@ -1756,7 +1751,7 @@ static int ipg_nic_open(struct net_device *dev)
1756 /* Register the interrupt line to be used by the IPG within 1751 /* Register the interrupt line to be used by the IPG within
1757 * the Linux system. 1752 * the Linux system.
1758 */ 1753 */
1759 rc = request_irq(pdev->irq, &ipg_interrupt_handler, IRQF_SHARED, 1754 rc = request_irq(pdev->irq, ipg_interrupt_handler, IRQF_SHARED,
1760 dev->name, dev); 1755 dev->name, dev);
1761 if (rc < 0) { 1756 if (rc < 0) {
1762 printk(KERN_INFO "%s: Error when requesting interrupt.\n", 1757 printk(KERN_INFO "%s: Error when requesting interrupt.\n",