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/ixgbe | |
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/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 636985224af..f098816d419 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) && |