diff options
-rw-r--r-- | net/core/dev.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index b21ad0b47aae..cb8caa93caca 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1729,6 +1729,13 @@ static u16 simple_tx_hash(struct net_device *dev, struct sk_buff *skb) | |||
1729 | goto out; | 1729 | goto out; |
1730 | } | 1730 | } |
1731 | 1731 | ||
1732 | if (skb->sk && skb->sk->sk_hash) { | ||
1733 | u32 val = skb->sk->sk_hash; | ||
1734 | |||
1735 | hash = jhash_1word(val, simple_tx_hashrnd); | ||
1736 | goto out; | ||
1737 | } | ||
1738 | |||
1732 | switch (skb->protocol) { | 1739 | switch (skb->protocol) { |
1733 | case htons(ETH_P_IP): | 1740 | case htons(ETH_P_IP): |
1734 | if (!(ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET))) | 1741 | if (!(ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET))) |