Skip to content

tcp: fix xmit timer rearming to avoid stalls

Neal Cardwell netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 18 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tcp: introduce tcp_rto_delta_us() helper for xmit timer fixinclude/net/tcp.h net/ipv4/tcp_input.c+11 -40 replies
2/3tcp: enable xmit timer fix by having TLP use time when RTO should firenet/ipv4/tcp_output.c+5 -90 replies
3/3tcp: fix xmit timer to only be reset if data ACKed/SACKednet/ipv4/tcp_input.c net/ipv4/tcp_output.c+16 -180 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric Dumazet
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net 0/3] tcp: fix xmit timer rearming to avoid stalls

This patch series is a bug fix for a TCP loss recovery performance bug reported independently in recent netdev threads:

(i) July 26, 2017: netdev thread "TCP fast retransmit issues" (ii) July 26, 2017: netdev thread:
"[PATCH V2 net-next] TLP: Don't reschedule PTO when there's one outstanding TLP retransmission"

Many thanks to Klavs Klavsen and Mao Wenan for the detailed reports, traces, and packetdrill test cases, which enabled us to root-cause this issue and verify the fix.

- v1 -> v2:
- In patch 2/3, changed an unclear comment in the pre-existing code in tcp_schedule_loss_probe() to be more clear (thanks to Eric Dumazet for suggesting we improve this).

Neal Cardwell (3):
tcp: introduce tcp_rto_delta_us() helper for xmit timer fix
tcp: enable xmit timer fix by having TLP use time when RTO should fire
tcp: fix xmit timer to only be reset if data ACKed/SACKed

 include/net/tcp.h     | 10 ++++++++++
 net/ipv4/tcp_input.c  | 30 +++++++++++++++++-------------
 net/ipv4/tcp_output.c | 23 +++++------------------
 3 files changed, 32 insertions(+), 31 deletions(-)
Signature · 1 line
2.14.0.rc1.383.gd1ce394fe2-goog