Use the __skb_set_sw_hash to set the hash in an skbuff from the socket txhash.
Signed-off-by: Tom Herbert <t...@herbertland.com> --- include/net/sock.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/net/sock.h b/include/net/sock.h index ebf75db..17d379a 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1920,10 +1920,8 @@ static inline void sock_poll_wait(struct file *filp, static inline void skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) { - if (sk->sk_txhash) { - skb->l4_hash = 1; - skb->hash = sk->sk_txhash; - } + if (sk->sk_txhash) + __skb_set_sw_hash(skb, sk->sk_txhash, true); } void skb_set_owner_w(struct sk_buff *skb, struct sock *sk); -- 2.9.3