diff options
36 files changed, 358 insertions, 245 deletions
diff --git a/drivers/isdn/i4l/isdn_net.c b/drivers/isdn/i4l/isdn_net.c index 48e9cc0369b1..1f73d7f7e024 100644 --- a/drivers/isdn/i4l/isdn_net.c +++ b/drivers/isdn/i4l/isdn_net.c | |||
| @@ -2532,6 +2532,9 @@ static void _isdn_setup(struct net_device *dev) | |||
| 2532 | 2532 | ||
| 2533 | /* Setup the generic properties */ | 2533 | /* Setup the generic properties */ |
| 2534 | dev->flags = IFF_NOARP|IFF_POINTOPOINT; | 2534 | dev->flags = IFF_NOARP|IFF_POINTOPOINT; |
| 2535 | |||
| 2536 | /* isdn prepends a header in the tx path, can't share skbs */ | ||
| 2537 | dev->priv_flags &= ~IFF_TX_SKB_SHARING; | ||
| 2535 | dev->header_ops = NULL; | 2538 | dev->header_ops = NULL; |
| 2536 | dev->netdev_ops = &isdn_netdev_ops; | 2539 | dev->netdev_ops = &isdn_netdev_ops; |
| 2537 | 2540 | ||
diff --git a/drivers/net/Makefile b/drivers/net/Makefile index b7622c3745fa..e1eca2ab505e 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile | |||
| @@ -282,6 +282,7 @@ obj-$(CONFIG_USB_HSO) += usb/ | |||
| 282 | obj-$(CONFIG_USB_USBNET) += usb/ | 282 | obj-$(CONFIG_USB_USBNET) += usb/ |
| 283 | obj-$(CONFIG_USB_ZD1201) += usb/ | 283 | obj-$(CONFIG_USB_ZD1201) += usb/ |
| 284 | obj-$(CONFIG_USB_IPHETH) += usb/ | 284 | obj-$(CONFIG_USB_IPHETH) += usb/ |
| 285 | obj-$(CONFIG_USB_CDC_PHONET) += usb/ | ||
| 285 | 286 | ||
| 286 | obj-$(CONFIG_WLAN) += wireless/ | 287 | obj-$(CONFIG_WLAN) += wireless/ |
| 287 | obj-$(CONFIG_NET_TULIP) += tulip/ | 288 | obj-$(CONFIG_NET_TULIP) += tulip/ |
diff --git a/drivers/net/acenic.c b/drivers/net/acenic.c index 536038b22710..31798f5f5d06 100644 --- a/drivers/net/acenic.c +++ b/drivers/net/acenic.c | |||
| @@ -1502,13 +1502,13 @@ static int __devinit ace_init(struct net_device *dev) | |||
| 1502 | * firmware to wipe the ring without re-initializing it. | 1502 | * firmware to wipe the ring without re-initializing it. |
| 1503 | */ | 1503 | */ |
| 1504 | if (!test_and_set_bit(0, &ap->std_refill_busy)) | 1504 | if (!test_and_set_bit(0, &ap->std_refill_busy)) |
| 1505 | ace_load_std_rx_ring(ap, RX_RING_SIZE); | 1505 | ace_load_std_rx_ring(dev, RX_RING_SIZE); |
| 1506 | else | 1506 | else |
| 1507 | printk(KERN_ERR "%s: Someone is busy refilling the RX ring\n", | 1507 | printk(KERN_ERR "%s: Someone is busy refilling the RX ring\n", |
| 1508 | ap->name); | 1508 | ap->name); |
| 1509 | if (ap->version >= 2) { | 1509 | if (ap->version >= 2) { |
| 1510 | if (!test_and_set_bit(0, &ap->mini_refill_busy)) | 1510 | if (!test_and_set_bit(0, &ap->mini_refill_busy)) |
| 1511 | ace_load_mini_rx_ring(ap, RX_MINI_SIZE); | 1511 | ace_load_mini_rx_ring(dev, RX_MINI_SIZE); |
| 1512 | else | 1512 | else |
| 1513 | printk(KERN_ERR "%s: Someone is busy refilling " | 1513 | printk(KERN_ERR "%s: Someone is busy refilling " |
| 1514 | "the RX mini ring\n", ap->name); | 1514 | "the RX mini ring\n", ap->name); |
| @@ -1584,9 +1584,10 @@ static void ace_watchdog(struct net_device *data) | |||
| 1584 | } | 1584 | } |
| 1585 | 1585 | ||
| 1586 | 1586 | ||
| 1587 | static void ace_tasklet(unsigned long dev) | 1587 | static void ace_tasklet(unsigned long arg) |
| 1588 | { | 1588 | { |
| 1589 | struct ace_private *ap = netdev_priv((struct net_device *)dev); | 1589 | struct net_device *dev = (struct net_device *) arg; |
| 1590 | struct ace_private *ap = netdev_priv(dev); | ||
| 1590 | int cur_size; | 1591 | int cur_size; |
| 1591 | 1592 | ||
| 1592 | cur_size = atomic_read(&ap->cur_rx_bufs); | 1593 | cur_size = atomic_read(&ap->cur_rx_bufs); |
| @@ -1595,7 +1596,7 @@ static void ace_tasklet(unsigned long dev) | |||
| 1595 | #ifdef DEBUG | 1596 | #ifdef DEBUG |
| 1596 | printk("refilling buffers (current %i)\n", cur_size); | 1597 | printk("refilling buffers (current %i)\n", cur_size); |
| 1597 | #endif | 1598 | #endif |
| 1598 | ace_load_std_rx_ring(ap, RX_RING_SIZE - cur_size); | 1599 | ace_load_std_rx_ring(dev, RX_RING_SIZE - cur_size); |
| 1599 | } | 1600 | } |
| 1600 | 1601 | ||
| 1601 | if (ap->version >= 2) { | 1602 | if (ap->version >= 2) { |
| @@ -1606,7 +1607,7 @@ static void ace_tasklet(unsigned long dev) | |||
| 1606 | printk("refilling mini buffers (current %i)\n", | 1607 | printk("refilling mini buffers (current %i)\n", |
| 1607 | cur_size); | 1608 | cur_size); |
| 1608 | #endif | 1609 | #endif |
| 1609 | ace_load_mini_rx_ring(ap, RX_MINI_SIZE - cur_size); | 1610 | ace_load_mini_rx_ring(dev, RX_MINI_SIZE - cur_size); |
| 1610 | } | 1611 | } |
| 1611 | } | 1612 | } |
| 1612 | 1613 | ||
| @@ -1616,7 +1617,7 @@ static void ace_tasklet(unsigned long dev) | |||
| 1616 | #ifdef DEBUG | 1617 | #ifdef DEBUG |
| 1617 | printk("refilling jumbo buffers (current %i)\n", cur_size); | 1618 | printk("refilling jumbo buffers (current %i)\n", cur_size); |
| 1618 | #endif | 1619 | #endif |
| 1619 | ace_load_jumbo_rx_ring(ap, RX_JUMBO_SIZE - cur_size); | 1620 | ace_load_jumbo_rx_ring(dev, RX_JUMBO_SIZE - cur_size); |
| 1620 | } | 1621 | } |
| 1621 | ap->tasklet_pending = 0; | 1622 | ap->tasklet_pending = 0; |
| 1622 | } | 1623 | } |
| @@ -1642,8 +1643,9 @@ static void ace_dump_trace(struct ace_private *ap) | |||
| 1642 | * done only before the device is enabled, thus no interrupts are | 1643 | * done only before the device is enabled, thus no interrupts are |
| 1643 | * generated and by the interrupt handler/tasklet handler. | 1644 | * generated and by the interrupt handler/tasklet handler. |
| 1644 | */ | 1645 | */ |
| 1645 | static void ace_load_std_rx_ring(struct ace_private *ap, int nr_bufs) | 1646 | static void ace_load_std_rx_ring(struct net_device *dev, int nr_bufs) |
| 1646 | { | 1647 | { |
| 1648 | struct ace_private *ap = netdev_priv(dev); | ||
| 1647 | struct ace_regs __iomem *regs = ap->regs; | 1649 | struct ace_regs __iomem *regs = ap->regs; |
| 1648 | short i, idx; | 1650 | short i, idx; |
| 1649 | 1651 | ||
| @@ -1657,11 +1659,10 @@ static void ace_load_std_rx_ring(struct ace_private *ap, int nr_bufs) | |||
| 1657 | struct rx_desc *rd; | 1659 | struct rx_desc *rd; |
| 1658 | dma_addr_t mapping; | 1660 | dma_addr_t mapping; |
| 1659 | 1661 | ||
| 1660 | skb = dev_alloc_skb(ACE_STD_BUFSIZE + NET_IP_ALIGN); | 1662 | skb = netdev_alloc_skb_ip_align(dev, ACE_STD_BUFSIZE); |
| 1661 | if (!skb) | 1663 | if (!skb) |
| 1662 | break; | 1664 | break; |
| 1663 | 1665 | ||
| 1664 | skb_reserve(skb, NET_IP_ALIGN); | ||
| 1665 | mapping = pci_map_page(ap->pdev, virt_to_page(skb->data), | 1666 | mapping = pci_map_page(ap->pdev, virt_to_page(skb->data), |
| 1666 | offset_in_page(skb->data), | 1667 | offset_in_page(skb->data), |
| 1667 | ACE_STD_BUFSIZE, | 1668 | ACE_STD_BUFSIZE, |
| @@ -1705,8 +1706,9 @@ static void ace_load_std_rx_ring(struct ace_private *ap, int nr_bufs) | |||
| 1705 | } | 1706 | } |
| 1706 | 1707 | ||
| 1707 | 1708 | ||
| 1708 | static void ace_load_mini_rx_ring(struct ace_private *ap, int nr_bufs) | 1709 | static void ace_load_mini_rx_ring(struct net_device *dev, int nr_bufs) |
| 1709 | { | 1710 | { |
| 1711 | struct ace_private *ap = netdev_priv(dev); | ||
| 1710 | struct ace_regs __iomem *regs = ap->regs; | 1712 | struct ace_regs __iomem *regs = ap->regs; |
| 1711 | short i, idx; | 1713 | short i, idx; |
| 1712 | 1714 | ||
| @@ -1718,11 +1720,10 @@ static void ace_load_mini_rx_ring(struct ace_private *ap, int nr_bufs) | |||
| 1718 | |||
