tcp: call tcp_ack_tstamp() when not fully acked
authorYousuk Seung <ysseung@google.com>
Tue, 30 Jun 2020 16:49:33 +0000 (09:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 20:40:33 +0000 (13:40 -0700)
commitff91e9292fc5aafd9ee1dc44c03cff69a3b0f39f
treeddef7ed03a1f815f271b2403c301d295aeb11adb
parent5831b33362fdb60d56314a237b764e24ee1a538e
tcp: call tcp_ack_tstamp() when not fully acked

When skb is coalesced tcp_ack_tstamp() still needs to be called when not
fully acked in tcp_clean_rtx_queue(), otherwise SCM_TSTAMP_ACK
timestamps may never be fired. Since the original patch series had
dependent commits, this patch fixes the issue instead of reverting by
restoring calls to tcp_ack_tstamp() when skb is not fully acked.

Fixes: fdb7eb21ddd3 ("tcp: stamp SCM_TSTAMP_ACK later in tcp_clean_rtx_queue()")
Signed-off-by: Yousuk Seung <ysseung@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c