From: Weiping Pan <hidden> Date: 2014-01-12 07:57:04
I find that both tcp_v4_syn_recv_sock() and tcp_v6_syn_recv_sock() call them
for new sock, so delete redundant calls of them.
Weiping Pan (2):
tcp: delete redundant calls of tcp_mtup_init()
tcp: delete redundant call of tcp_initialize_rcv_mss()
net/ipv4/tcp_input.c | 2 --
net/ipv4/tcp_ipv4.c | 1 -
2 files changed, 0 insertions(+), 3 deletions(-)
--
1.7.4
From: Weiping Pan <hidden> Date: 2014-01-12 07:57:05
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 <redacted>
---
net/ipv4/tcp_input.c | 1 -
net/ipv4/tcp_ipv4.c | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
From: Weiping Pan <hidden> Date: 2014-01-12 07:57:06
As both tcp_v4_syn_recv_sock() and tcp_v6_syn_recv_sock() already call
tcp_initialize_rcv_mss() for new sock, the call of it in tcp_rcv_state_process()
is redundant.
Signed-off-by: Weiping Pan <redacted>
---
net/ipv4/tcp_input.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
@@ -5771,7 +5771,6 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,/* Prevent spurious tcp_cwnd_restart() on first data packet */tp->lsndtime=tcp_time_stamp;-tcp_initialize_rcv_mss(sk);tcp_fast_path_on(tp);break;
From: David Miller <davem@davemloft.net> Date: 2014-01-15 00:41:08
From: Weiping Pan <redacted>
Date: Sun, 12 Jan 2014 15:54:29 +0800
I find that both tcp_v4_syn_recv_sock() and tcp_v6_syn_recv_sock() call them
for new sock, so delete redundant calls of them.
Weiping Pan (2):
tcp: delete redundant calls of tcp_mtup_init()
tcp: delete redundant call of tcp_initialize_rcv_mss()
I do not agree with the approach of these two patches.
It is better to have tcp_rcv_state_process() (one location) make these
calls rather than each and every inet sock operations instance.
Therefore you should remove the calls from tcp_v{4,6}_recv_sock() and
keep the one in tcp_rcv_state_process().
Thanks.
From: Weiping Pan <hidden> Date: 2014-01-19 12:44:53
As tcp_rcv_state_process() has already calls tcp_mtup_init() for non-fastopen
sock, we can delete the redundant calls of tcp_mtup_init() in
tcp_{v4,v6}_syn_recv_sock().
Signed-off-by: Weiping Pan <redacted>
---
net/ipv4/tcp_ipv4.c | 1 -
net/ipv6/tcp_ipv6.c | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2014-01-22 00:52:57
From: Weiping Pan <redacted>
Date: Sun, 19 Jan 2014 20:44:46 +0800
As tcp_rcv_state_process() has already calls tcp_mtup_init() for non-fastopen
sock, we can delete the redundant calls of tcp_mtup_init() in
tcp_{v4,v6}_syn_recv_sock().
Signed-off-by: Weiping Pan <redacted>