tcp: fix tcp_grow_skb() vs tstamps
authorEric Dumazet <edumazet@google.com>
Thu, 25 Apr 2024 19:34:50 +0000 (19:34 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Apr 2024 20:55:29 +0000 (13:55 -0700)
commit1bede0a12d3a45bd366d3cf9e1c7611d86f1bc1f
treec5790b9f11b064ab3ff7796f131e60cf6693c529
parent8880e2666fa87a7d62a60fea9fe9ed9ba21ddcf7
tcp: fix tcp_grow_skb() vs tstamps

I forgot to call tcp_skb_collapse_tstamp() in the
case we consume the second skb in write queue.

Neal suggested to create a common helper used by tcp_mtu_probe()
and tcp_grow_skb().

Fixes: 8ee602c63520 ("tcp: try to send bigger TSO packets")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Link: https://lore.kernel.org/r/20240425193450.411640-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_output.c