Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133923
b: refs/heads/master
c: f7105d6
h: refs/heads/master
i:
  133921: 93d390e
  133919: 861298c
v: v3
  • Loading branch information
David S. Miller committed Jan 28, 2009
1 parent 406c3f7 commit 2da2f50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c8dfc830aadd978e461dad66c33741b71c6a0be
refs/heads/master: f7105d63940899ece79bda024f668e6c761cfebf
7 changes: 7 additions & 0 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,13 @@ static u16 simple_tx_hash(struct net_device *dev, struct sk_buff *skb)
goto out;
}

if (skb->sk && skb->sk->sk_hash) {
u32 val = skb->sk->sk_hash;

hash = jhash_1word(val, simple_tx_hashrnd);
goto out;
}

switch (skb->protocol) {
case htons(ETH_P_IP):
if (!(ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)))
Expand Down

0 comments on commit 2da2f50

Please sign in to comment.