diff options
author | David S. Miller <davem@davemloft.net> | 2010-04-21 04:14:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-21 04:14:25 -0400 |
commit | 87eb367003887cdc81a5d183efea227b5b488961 (patch) | |
tree | 40f617e25a9364d573e3cd2189c9e7fa56c8a0fe /net/core | |
parent | ccb7c7732e2ceb4e81a7806faf1670be9681ccd2 (diff) | |
parent | 05d17608a69b3ae653ea5c9857283bef3439c733 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/wireless/iwlwifi/iwl-6000.c
net/core/dev.c
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index b31d5d69a467..e904c476b112 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2015,8 +2015,12 @@ static struct netdev_queue *dev_pick_tx(struct net_device *dev, | |||
2015 | if (dev->real_num_tx_queues > 1) | 2015 | if (dev->real_num_tx_queues > 1) |
2016 | queue_index = skb_tx_hash(dev, skb); | 2016 | queue_index = skb_tx_hash(dev, skb); |
2017 | 2017 | ||
2018 | if (sk && rcu_dereference_check(sk->sk_dst_cache, 1)) | 2018 | if (sk) { |
2019 | sk_tx_queue_set(sk, queue_index); | 2019 | struct dst_entry *dst = rcu_dereference_check(sk->sk_dst_cache, 1); |
2020 | |||
2021 | if (dst && skb_dst(skb) == dst) | ||
2022 | sk_tx_queue_set(sk, queue_index); | ||
2023 | } | ||
2020 | } | 2024 | } |
2021 | } | 2025 | } |
2022 | 2026 | ||