[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <8164bb360e0970c6500368b6601ba5cadb154acf.1389513042.git.panweiping3@gmail.com>
Date: Sun, 12 Jan 2014 15:54:30 +0800
From: Weiping Pan <panweiping3@...il.com>
To: netdev@...r.kernel.org
Subject: [PATCH net 1/2] tcp: delete redundant calls of tcp_mtup_init()
As both tcp_v4_syn_recv_sock() and tcp_v6_syn_recv_sock() already call
tcp_mtup_init() for new sock, the calls of it in tcp_rcv_state_process() and
tcp_v4_conn_req_fastopen() are redundant.
Signed-off-by: Weiping Pan <panweiping3@...il.com>
---
net/ipv4/tcp_input.c | 1 -
net/ipv4/tcp_ipv4.c | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index c53b7f3..8add6bc 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -5731,7 +5731,6 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
icsk->icsk_af_ops->rebuild_header(sk);
tcp_init_congestion_control(sk);
- tcp_mtup_init(sk);
tp->copied_seq = tp->rcv_nxt;
tcp_init_buffer_space(sk);
}
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 0672139..6578047 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1410,7 +1410,6 @@ static int tcp_v4_conn_req_fastopen(struct sock *sk,
/* Now finish processing the fastopen child socket. */
inet_csk(child)->icsk_af_ops->rebuild_header(child);
tcp_init_congestion_control(child);
- tcp_mtup_init(child);
tcp_init_metrics(child);
tcp_init_buffer_space(child);
--
1.7.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists