summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_minisocks.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-22 20:44:17 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-24 14:52:30 -0700
commitd8ed625044cdede8661324074aaad7459a1e3c7a (patch)
treebaa489eef4a565cf732cae57fc1df38f04eaf13a /net/ipv4/tcp_minisocks.c
parent729bf329c79684327a55c33cdf21222543a1e5f1 (diff)
downloadlinux-d8ed625044cdede8661324074aaad7459a1e3c7a.tar.gz
linux-d8ed625044cdede8661324074aaad7459a1e3c7a.tar.bz2
linux-d8ed625044cdede8661324074aaad7459a1e3c7a.zip
tcp: factorize sk_txhash init
Neal suggested to move sk_txhash init into tcp_create_openreq_child(), called both from IPv4 and IPv6. This opportunity was missed in commit 58d607d3e52f ("tcp: provide skb->hash to synack packets") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_minisocks.c')
-rw-r--r--net/ipv4/tcp_minisocks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
index 10933d01b982..85830bb92d04 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -471,6 +471,7 @@ struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req,
tcp_enable_early_retrans(newtp);
newtp->tlp_high_seq = 0;
newtp->lsndtime = treq->snt_synack.stamp_jiffies;
+ newsk->sk_txhash = treq->txhash;
newtp->last_oow_ack_time = 0;
newtp->total_retrans = req->num_retrans;