diff options
author | David S. Miller <davem@davemloft.net> | 2010-02-03 22:38:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-03 22:38:22 -0500 |
commit | 9c119ba54c0fcae72881948af3d37b47a2f8e1f9 (patch) | |
tree | 0be51b0bf02ece3bb32955e9d33a3998ecd57250 /drivers/net | |
parent | a4b97f2054af2e411c414ed4cb5e1d0dbfd24a47 (diff) | |
parent | fdd3d631cddad20ad9d3e1eb7dbf26825a8a121f (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/benet/be_main.c | 4 | ||||
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 7 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 4 | ||||
-rw-r--r-- | drivers/net/sky2.c | 8 | ||||
-rw-r--r-- | drivers/net/usb/cdc_ether.c | 2 |
5 files changed, 14 insertions, 11 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 90c5661b336f..626b76c0ebc7 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c | |||
@@ -1350,7 +1350,7 @@ static irqreturn_t be_intx(int irq, void *dev) | |||
1350 | int isr; | 1350 | int isr; |
1351 | 1351 | ||
1352 | isr = ioread32(adapter->csr + CEV_ISR0_OFFSET + | 1352 | isr = ioread32(adapter->csr + CEV_ISR0_OFFSET + |
1353 | be_pci_func(adapter) * CEV_ISR_SIZE); | 1353 | (adapter->tx_eq.q.id/ 8) * CEV_ISR_SIZE); |
1354 | if (!isr) | 1354 | if (!isr) |
1355 | return IRQ_NONE; | 1355 | return IRQ_NONE; |
1356 | 1356 | ||
@@ -2168,7 +2168,7 @@ static int be_stats_init(struct be_adapter *adapter) | |||
2168 | cmd->va = pci_alloc_consistent(adapter->pdev, cmd->size, &cmd->dma); | 2168 | cmd->va = pci_alloc_consistent(adapter->pdev, cmd->size, &cmd->dma); |
2169 | if (cmd->va == NULL) | 2169 | if (cmd->va == NULL) |
2170 | return -1; | 2170 | return -1; |
2171 | memset(cmd->va, cmd->size, 0); | 2171 | memset(cmd->va, 0, cmd->size); |
2172 | return 0; | 2172 | return 0; |
2173 | } | 2173 | } |
2174 | 2174 | ||
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 636985224afc..f098816d4199 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -5384,7 +5384,7 @@ dma_error: | |||
5384 | ixgbe_unmap_and_free_tx_resource(adapter, tx_buffer_info); | 5384 | ixgbe_unmap_and_free_tx_resource(adapter, tx_buffer_info); |
5385 | } | 5385 | } |
5386 | 5386 | ||
5387 | return count; | 5387 | return 0; |
5388 | } | 5388 | } |
5389 | 5389 | ||
5390 | static void ixgbe_tx_queue(struct ixgbe_adapter *adapter, | 5390 | static void ixgbe_tx_queue(struct ixgbe_adapter *adapter, |
@@ -5534,8 +5534,11 @@ static u16 ixgbe_select_queue(struct net_device *dev, struct sk_buff *skb) | |||
5534 | struct ixgbe_adapter *adapter = netdev_priv(dev); | 5534 | struct ixgbe_adapter *adapter = netdev_priv(dev); |
5535 | int txq = smp_processor_id(); | 5535 | int txq = smp_processor_id(); |
5536 | 5536 | ||
5537 | if (adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) | 5537 | if (adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) { |
5538 | while (unlikely(txq >= dev->real_num_tx_queues)) | ||
5539 | txq -= dev->real_num_tx_queues; | ||
5538 | return txq; | 5540 | return txq; |
5541 | } | ||
5539 | 5542 | ||
5540 | #ifdef IXGBE_FCOE | 5543 | #ifdef IXGBE_FCOE |
5541 | if ((adapter->flags & IXGBE_FLAG_FCOE_ENABLED) && | 5544 | if ((adapter->flags & IXGBE_FLAG_FCOE_ENABLED) && |
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 076f826d5a50..08780ef1c1f8 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -1995,7 +1995,7 @@ static void netxen_tx_timeout_task(struct work_struct *work) | |||
1995 | netif_wake_queue(adapter->netdev); | 1995 | netif_wake_queue(adapter->netdev); |
1996 | 1996 | ||
1997 | clear_bit(__NX_RESETTING, &adapter->state); | 1997 | clear_bit(__NX_RESETTING, &adapter->state); |
1998 | 1998 | return; | |
1999 | } else { | 1999 | } else { |
2000 | clear_bit(__NX_RESETTING, &adapter->state); | 2000 | clear_bit(__NX_RESETTING, &adapter->state); |
2001 | if (!netxen_nic_reset_context(adapter)) { | 2001 | if (!netxen_nic_reset_context(adapter)) { |
@@ -2323,7 +2323,9 @@ netxen_detach_work(struct work_struct *work) | |||
2323 | 2323 | ||
2324 | netxen_nic_down(adapter, netdev); | 2324 | netxen_nic_down(adapter, netdev); |
2325 | 2325 | ||
2326 | rtnl_lock(); | ||
2326 | netxen_nic_detach(adapter); | 2327 | netxen_nic_detach(adapter); |
2328 | rtnl_unlock(); | ||
2327 | 2329 | ||
2328 | status = NXRD32(adapter, NETXEN_PEG_HALT_STATUS1); | 2330 | status = NXRD32(adapter, NETXEN_PEG_HALT_STATUS1); |
2329 | 2331 | ||
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index fecde669d6ab..a6ddfc1a9cb2 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -1025,11 +1025,8 @@ static void sky2_prefetch_init(struct sky2_hw *hw, u32 qaddr, | |||
1025 | static inline struct sky2_tx_le *get_tx_le(struct sky2_port *sky2, u16 *slot) | 1025 | static inline struct sky2_tx_le *get_tx_le(struct sky2_port *sky2, u16 *slot) |
1026 | { | 1026 | { |
1027 | struct sky2_tx_le *le = sky2->tx_le + *slot; | 1027 | struct sky2_tx_le *le = sky2->tx_le + *slot; |
1028 | struct tx_ring_info *re = sky2->tx_ring + *slot; | ||
1029 | 1028 | ||
1030 | *slot = RING_NEXT(*slot, sky2->tx_ring_size); | 1029 | *slot = RING_NEXT(*slot, sky2->tx_ring_size); |
1031 | re->flags = 0; | ||
1032 | re->skb = NULL; | ||
1033 | le->ctrl = 0; | 1030 | le->ctrl = 0; |
1034 | return le; | 1031 | return le; |
1035 | } | 1032 | } |
@@ -1622,8 +1619,7 @@ static unsigned tx_le_req(const struct sk_buff *skb) | |||
1622 | return count; | 1619 | return count; |
1623 | } | 1620 | } |
1624 | 1621 | ||
1625 | static void sky2_tx_unmap(struct pci_dev *pdev, | 1622 | static void sky2_tx_unmap(struct pci_dev *pdev, struct tx_ring_info *re) |
1626 | const struct tx_ring_info *re) | ||
1627 | { | 1623 | { |
1628 | if (re->flags & TX_MAP_SINGLE) | 1624 | if (re->flags & TX_MAP_SINGLE) |
1629 | pci_unmap_single(pdev, pci_unmap_addr(re, mapaddr), | 1625 | pci_unmap_single(pdev, pci_unmap_addr(re, mapaddr), |
@@ -1633,6 +1629,7 @@ static void sky2_tx_unmap(struct pci_dev *pdev, | |||
1633 | pci_unmap_page(pdev, pci_unmap_addr(re, mapaddr), | 1629 | pci_unmap_page(pdev, pci_unmap_addr(re, mapaddr), |
1634 | pci_unmap_len(re, maplen), | 1630 | pci_unmap_len(re, maplen), |
1635 | PCI_DMA_TODEVICE); | 1631 | PCI_DMA_TODEVICE); |
1632 | re->flags = 0; | ||
1636 | } | 1633 | } |
1637 | 1634 | ||
1638 | /* | 1635 | /* |
@@ -1839,6 +1836,7 @@ static void sky2_tx_complete(struct sky2_port *sky2, u16 done) | |||
1839 | dev->stats.tx_packets++; | 1836 | dev->stats.tx_packets++; |
1840 | dev->stats.tx_bytes += skb->len; | 1837 | dev->stats.tx_bytes += skb->len; |
1841 | 1838 | ||
1839 | re->skb = NULL; | ||
1842 | dev_kfree_skb_any(skb); | 1840 | dev_kfree_skb_any(skb); |
1843 | 1841 | ||
1844 | sky2->tx_next = RING_NEXT(idx, sky2->tx_ring_size); | 1842 | sky2->tx_next = RING_NEXT(idx, sky2->tx_ring_size); |
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 21e183a83b99..4f27f022fbf7 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c | |||
@@ -419,7 +419,7 @@ static int cdc_manage_power(struct usbnet *dev, int on) | |||
419 | 419 | ||
420 | static const struct driver_info cdc_info = { | 420 | static const struct driver_info cdc_info = { |
421 | .description = "CDC Ethernet Device", | 421 | .description = "CDC Ethernet Device", |
422 | .flags = FLAG_ETHER | FLAG_LINK_INTR, | 422 | .flags = FLAG_ETHER, |
423 | // .check_connect = cdc_check_connect, | 423 | // .check_connect = cdc_check_connect, |
424 | .bind = cdc_bind, | 424 | .bind = cdc_bind, |
425 | .unbind = usbnet_cdc_unbind, | 425 | .unbind = usbnet_cdc_unbind, |