Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144582
b: refs/heads/master
c: ec581f6
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 1, 2009
1 parent 6a2a76c commit 28708aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 7a67e56fd362d3edfde1f19170893508c3940d3a
refs/heads/master: ec581f6a42bbbea5271c66da9769a41b46c74e10
9 changes: 5 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1735,11 +1735,12 @@ u16 skb_tx_hash(const struct net_device *dev, const struct sk_buff *skb)
{
u32 hash;

if (skb_rx_queue_recorded(skb)) {
hash = skb_get_rx_queue(skb);
} else if (skb->sk && skb->sk->sk_hash) {
if (skb_rx_queue_recorded(skb))
return skb_get_rx_queue(skb) % dev->real_num_tx_queues;

if (skb->sk && skb->sk->sk_hash)
hash = skb->sk->sk_hash;
} else
else
hash = skb->protocol;

hash = jhash_1word(hash, skb_tx_hashrnd);
Expand Down

0 comments on commit 28708aa

Please sign in to comment.