[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160929035428.204355-2-tom@herbertland.com>
Date: Wed, 28 Sep 2016 20:54:24 -0700
From: Tom Herbert <tom@...bertland.com>
To: <davem@...emloft.net>, <netdev@...r.kernel.org>
CC: <kernel-team@...com>, <rick.jones2@....com>,
<alexander.duyck@...il.com>
Subject: [PATCH v2 net-next 1/5] net: Set SW hash in skb_set_hash_from_sk
Use the __skb_set_sw_hash to set the hash in an skbuff from the socket
txhash.
Signed-off-by: Tom Herbert <tom@...bertland.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
Powered by blists - more mailing lists