Commit 15bb774
tcp: initialize icsk_ack.lrcvtime at session start time
icsk_ack.lrcvtime has a 0 value at socket creation time.
tcpi_last_data_recv can have bogus value if no payload is ever received.
This patch initializes icsk_ack.lrcvtime for active sessions
in tcp_finish_connect(), and for passive sessions in
tcp_create_openreq_child()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 1d2a6a5 commit 15bb774
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5541 | 5541 | | |
5542 | 5542 | | |
5543 | 5543 | | |
| 5544 | + | |
5544 | 5545 | | |
5545 | 5546 | | |
5546 | 5547 | | |
| |||
5759 | 5760 | | |
5760 | 5761 | | |
5761 | 5762 | | |
5762 | | - | |
5763 | 5763 | | |
5764 | 5764 | | |
5765 | 5765 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
| |||
0 commit comments