Andrey Vagin
9d186cac7f
tcp: don't use timestamp from repaired skb-s to calculate RTT (v2)
We don't know right timestamp for repaired skb-s. Wrong RTT estimations
isn't good, because some congestion modules heavily depends on it.
This patch adds the TCPCB_REPAIRED flag, which is included in
TCPCB_RETRANS.
Thanks to Eric for the advice how to fix this issue.
This patch fixes the warning:
[ 879.562947] WARNING: CPU: 0 PID: 2825 at net/ipv4/tcp_input.c:3078 tcp_ack+0x11f5/0x1380()
[ 879.567253] CPU: 0 PID: 2825 Comm: socket-tcpbuf-l Not tainted 3.16.0-next-20140811 #1
[ 879.567829] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 879.568177] 0000000000000000 00000000c532680c ffff880039643d00 ffffffff817aa2d2
[ 879.568776] 0000000000000000 ffff880039643d38 ffffffff8109afbd ffff880039d6ba80
[ 879.569386] ffff88003a449800 000000002983d6bd 0000000000000000 000000002983d6bc
[ 879.569982] Call Trace:
[ 879.570264] [<ffffffff817aa2d2>] dump_stack+0x4d/0x66
[ 879.570599] [<ffffffff8109afbd>] warn_slowpath_common+0x7d/0xa0
[ 879.570935] [<ffffffff8109b0ea>] warn_slowpath_null+0x1a/0x20
[ 879.571292] [<ffffffff816d0a05>] tcp_ack+0x11f5/0x1380
[ 879.571614] [<ffffffff816d10bd>] tcp_rcv_established+0x1ed/0x710
[ 879.571958] [<ffffffff816dc9da>] tcp_v4_do_rcv+0x10a/0x370
[ 879.572315] [<ffffffff81657459>] release_sock+0x89/0x1d0
[ 879.572642] [<ffffffff816c81a0>] do_tcp_setsockopt.isra.36+0x120/0x860
[ 879.573000] [<ffffffff8110a52e>] ? rcu_read_lock_held+0x6e/0x80
[ 879.573352] [<ffffffff816c8912>] tcp_setsockopt+0x32/0x40
[ 879.573678] [<ffffffff81654ac4>] sock_common_setsockopt+0x14/0x20
[ 879.574031] [<ffffffff816537b0>] SyS_setsockopt+0x80/0xf0
[ 879.574393] [<ffffffff817b40a9>] system_call_fastpath+0x16/0x1b
[ 879.574730] ---[ end trace a17cbc38eb8c5c00 ]---
v2: moving setting of skb->when for repaired skb-s in tcp_write_xmit,
where it's set for other skb-s.
Fixes: 431a91242d ("tcp: timestamp SYN+DATA messages")
Fixes: 740b0f1841 ("tcp: switch rtt estimations to usec resolution")
Cc: Eric Dumazet <edumazet@google.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-08-14 14:38:54 -07:00
..
2014-03-25 16:38:16 -05:00
2014-07-30 19:28:41 +02:00
2013-09-23 16:29:41 -04:00
2013-12-06 12:37:56 -05:00
2013-04-08 17:16:57 -04:00
2014-07-22 00:44:59 -07:00
2014-07-25 14:55:44 +02:00
2014-07-23 01:17:31 +02:00
2014-07-31 21:49:06 -07:00
2014-02-12 19:23:32 -05:00
2014-07-30 19:28:41 +02:00
2014-02-12 19:23:32 -05:00
2014-04-30 13:31:26 -04:00
2014-05-16 17:23:41 -04:00
2013-07-31 17:50:01 -07:00
2013-08-10 01:16:44 -07:00
2014-05-05 13:13:50 -04:00
2013-12-28 17:02:46 -05:00
2013-07-31 17:50:02 -07:00
2014-01-13 17:39:11 +01:00
2014-06-25 18:06:20 +02:00
2014-05-05 15:26:29 -04:00
2013-12-10 17:56:54 -05:00
2014-02-08 10:36:58 -05:00
2014-01-21 23:17:20 -08:00
2013-09-20 14:49:32 -04:00
2014-02-09 17:32:50 -08:00
2013-12-06 12:37:56 -05:00
2014-07-17 16:02:29 -07:00
2013-12-10 21:50:00 -05:00
2013-09-20 14:49:32 -04:00
2013-09-20 14:49:32 -04:00
2013-09-20 14:49:32 -04:00
2014-02-09 17:32:49 -08:00
2014-02-09 17:32:49 -08:00
2014-04-30 13:31:25 -04:00
2014-04-15 13:47:15 -04:00
2013-11-07 19:28:58 -05:00
2014-02-04 20:19:51 -08:00
2013-09-20 14:49:33 -04:00
2013-03-26 12:32:13 -04:00
2014-07-07 21:14:20 -07:00
2014-04-16 15:05:11 -04:00
2014-02-12 07:02:11 +01:00
2013-09-20 14:49:33 -04:00
2013-09-20 14:49:33 -04:00
2014-01-06 15:51:53 -08:00
2014-06-04 22:46:38 -07:00
2013-09-20 14:49:33 -04:00
2014-02-06 09:34:58 +01:00
2014-05-16 17:23:42 -04:00
2014-05-15 15:51:42 -04:00
2014-07-11 15:05:45 -07:00
2014-04-15 12:58:34 -04:00
2013-10-19 19:45:34 -04:00
2013-09-21 14:01:38 -04:00
2014-04-15 12:58:34 -04:00
2014-05-07 15:30:52 -04:00
2014-08-02 15:31:31 -07:00
2014-05-14 16:07:23 -04:00
2014-06-27 15:53:35 -07:00
2014-07-01 23:46:21 -07:00
2014-06-03 23:32:12 -07:00
2014-06-04 22:46:38 -07:00
2014-03-27 15:09:07 -04:00
2014-05-24 00:32:30 -04:00
2014-01-04 20:10:24 -05:00
2013-09-21 14:01:38 -04:00
2014-07-30 15:18:58 -07:00
2014-04-18 14:20:48 +02:00
2014-07-30 13:25:49 -07:00
2014-07-27 22:34:36 -07:00
2014-02-09 17:32:50 -08:00
2013-09-21 14:01:39 -04:00
2013-09-21 14:01:38 -04:00
2013-04-29 15:41:56 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-01-01 22:22:43 -05:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-01-03 20:56:48 -05:00
2014-07-21 17:42:07 +02:00
2014-07-07 21:29:24 -07:00
2013-12-06 12:37:56 -05:00
2013-09-04 14:53:20 -04:00
2013-10-01 17:06:14 -04:00
2013-09-21 14:01:39 -04:00
2014-07-14 14:32:51 -07:00
2014-04-24 12:36:00 -04:00
2013-09-21 14:01:39 -04:00
2014-08-07 20:55:21 -04:00
2014-07-28 17:20:43 -07:00
2014-02-08 10:36:58 -05:00
2013-09-21 14:01:39 -04:00
2014-03-14 22:15:26 -04:00
2013-09-21 14:01:39 -04:00
2014-01-19 19:53:18 -08:00
2014-04-27 23:42:39 -04:00
2014-06-11 15:50:59 -07:00
2014-05-23 16:28:53 -04:00
2013-09-23 01:51:08 -04:00
2013-09-23 01:51:08 -04:00
2013-09-23 01:51:08 -04:00
2014-01-21 23:17:20 -08:00
2014-04-09 10:55:34 +02:00
2013-10-10 00:08:07 -04:00
2013-09-23 01:51:08 -04:00
2014-03-24 12:45:01 -04:00
2014-07-15 16:13:07 -07:00
2014-06-23 14:32:19 -07:00
2013-09-23 01:51:09 -04:00
2014-06-02 11:00:41 -07:00
2014-05-07 16:06:05 -04:00
2014-08-06 12:38:07 -07:00
2013-12-19 18:51:20 -05:00
2013-09-23 01:51:09 -04:00
2013-10-21 18:43:02 -04:00
2014-08-14 14:38:54 -07:00
2014-01-19 19:53:18 -08:00
2014-05-22 14:57:15 -04:00
2014-07-14 16:12:15 -07:00
2014-07-07 21:14:21 -07:00
2013-09-23 16:29:40 -04:00
2013-07-27 22:14:06 -07:00
2014-07-07 21:14:21 -07:00
2013-09-23 16:29:40 -04:00
2014-05-05 15:37:55 +02:00
2014-02-17 16:42:39 -05:00
2013-09-23 16:29:41 -04:00
2014-04-23 08:21:04 +02:00