Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150085
b: refs/heads/master
c: 513de11
h: refs/heads/master
i:
  150083: 2491200
v: v3
  • Loading branch information
David S. Miller committed May 3, 2009
1 parent 91e7bd6 commit 838f69e
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: accc5b4f902b0ba83b2c6c48f2d9e7c204cef4a8
refs/heads/master: 513de11bba246b7a67df4c314d9fc936b6a75d0e
8 changes: 6 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1735,8 +1735,12 @@ u16 skb_tx_hash(const struct net_device *dev, const struct sk_buff *skb)
{
u32 hash;

if (skb_rx_queue_recorded(skb))
return skb_get_rx_queue(skb) % dev->real_num_tx_queues;
if (skb_rx_queue_recorded(skb)) {
hash = skb_get_rx_queue(skb);
while (unlikely (hash >= dev->real_num_tx_queues))
hash -= dev->real_num_tx_queues;
return hash;
}

if (skb->sk && skb->sk->sk_hash)
hash = skb->sk->sk_hash;
Expand Down

0 comments on commit 838f69e

Please sign in to comment.