netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Weiping Pan <panweiping3@gmail.com>
To: netdev@vger.kernel.org
Subject: [PATCH net 2/2] tcp: delete redundant call of tcp_initialize_rcv_mss()
Date: Sun, 12 Jan 2014 15:54:31 +0800	[thread overview]
Message-ID: <562fd95c0cf9a70789fca00e97e06035b94a7fb4.1389513042.git.panweiping3@gmail.com> (raw)
In-Reply-To: <cover.1389513042.git.panweiping3@gmail.com>

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 <panweiping3@gmail.com>
---
 net/ipv4/tcp_input.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 8add6bc..8a2b5c7 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -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;
 
-- 
1.7.4

  parent reply	other threads:[~2014-01-12  7:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-12  7:54 [PATCH net 0/2] tcp: delete redundant calls of tcp_mtup_init() and Weiping Pan
2014-01-12  7:54 ` [PATCH net 1/2] tcp: delete redundant calls of tcp_mtup_init() Weiping Pan
2014-01-12  7:54 ` Weiping Pan [this message]
2014-01-15  0:41 ` [PATCH net 0/2] tcp: delete redundant calls of tcp_mtup_init() and David Miller
2014-01-19 12:44   ` [PATCH net v2] tcp: delete redundant calls of tcp_mtup_init() Weiping Pan
2014-01-22  0:52     ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=562fd95c0cf9a70789fca00e97e06035b94a7fb4.1389513042.git.panweiping3@gmail.com \
    --to=panweiping3@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).