aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2017-03-24 13:08:00 -0400
committerDavid S. Miller <davem@davemloft.net>2017-03-24 23:49:30 -0400
commite5907459ce7e2b6bc397007865ad492f10c2aeac (patch)
treed8e83baae6c47934ab8e2be0754fb53670f09a2b /net/ipv4/tcp_ipv4.c
parent545cd5e5ec5477c325e4098b6fd21213dceda408 (diff)
tcp: Record Rx hash and NAPI ID in tcp_child_process
While working on some recent busy poll changes we found that child sockets were being instantiated without NAPI ID being set. In our first attempt to fix it, it was suggested that we should just pull programming the NAPI ID into the function itself since all callers will need to have it set. In addition to the NAPI ID change I have dropped the code that was populating the Rx hash since it was actually being populated in tcp_get_cookie_sock. Reported-by: Sridhar Samudrala <sridhar.samudrala@intel.com> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 7482b5d11861..20cbd2f07f28 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1409,8 +1409,6 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
1409 if (!nsk) 1409 if (!nsk)
1410 goto discard; 1410 goto discard;
1411 if (nsk != sk) { 1411 if (nsk != sk) {
1412 sock_rps_save_rxhash(nsk, skb);
1413 sk_mark_napi_id(nsk, skb);
1414 if (tcp_child_process(sk, nsk, skb)) { 1412 if (tcp_child_process(sk, nsk, skb)) {
1415 rsk = nsk; 1413 rsk = nsk;
1416 goto reset; 1414 goto reset;