Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190018
b: refs/heads/master
c: 8728c54
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Apr 15, 2010
1 parent c24fbbf commit 6641273
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4eaa0e3c869acd5dbc7c2e3818a9ae9cbf221d27
refs/heads/master: 8728c544a9cbdcb0034aa5c45706c5f953f030ee
8 changes: 6 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1989,8 +1989,12 @@ static struct netdev_queue *dev_pick_tx(struct net_device *dev,
if (dev->real_num_tx_queues > 1)
queue_index = skb_tx_hash(dev, skb);

if (sk && sk->sk_dst_cache)
sk_tx_queue_set(sk, queue_index);
if (sk) {
struct dst_entry *dst = rcu_dereference(sk->sk_dst_cache);

if (dst && skb_dst(skb) == dst)
sk_tx_queue_set(sk, queue_index);
}
}
}

Expand Down

0 comments on commit 6641273

Please sign in to comment.