public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Andrey Vagin <avagin@openvz.org>
Cc: netdev <netdev@vger.kernel.org>
Subject: About  tcp: set timestamps for restored skb-s
Date: Sat, 17 Aug 2013 17:39:36 -0700	[thread overview]
Message-ID: <1376786376.21329.20.camel@edumazet-glaptop> (raw)

Because of gmail.com problems, I missed lot of netdev traffic

Related to :

http://patchwork.ozlabs.org/patch/267678/


diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 5423223..b2f6c74 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1121,6 +1121,13 @@  new_segment:
 					goto wait_for_memory;
 
 				/*
+				 * All packets are restored as if they have
+				 * already been sent.
+				 */
+				if (tp->repair)
+					TCP_SKB_CB(skb)->when = tcp_time_stamp;
+

The test could be removed.

Setting @when for regular sends seems harmless

             reply	other threads:[~2013-08-18  0:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18  0:39 Eric Dumazet [this message]
2013-08-20 20:08 ` About tcp: set timestamps for restored skb-s David Miller
2013-08-20 20:30   ` Eric Dumazet

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=1376786376.21329.20.camel@edumazet-glaptop \
    --to=eric.dumazet@gmail.com \
    --cc=avagin@openvz.org \
    --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