Merge branch 'tcp-avoid-sending-too-small-packets'
authorJakub Kicinski <kuba@kernel.org>
Mon, 22 Apr 2024 21:25:32 +0000 (14:25 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 22 Apr 2024 21:25:32 +0000 (14:25 -0700)
commit65f1df1140aab935c1db68abdc151dddf6fea85a
tree11c59db4fd82eb72c7471f4edde1e851346651d3
parentf62a5e71277293673c77d8c336e4ef8a2ee16050
parent8ee602c635206ed012f979370094015857c02359
Merge branch 'tcp-avoid-sending-too-small-packets'

Eric Dumazet says:

====================
tcp: avoid sending too small packets

tcp_sendmsg() cooks 'large' skbs, that are later split
if needed from tcp_write_xmit().

After a split, the leftover skb size is smaller than the optimal
size, and this causes a performance drop.

In this series, tcp_grow_skb() helper is added to shift
payload from the second skb in the write queue to the first
skb to always send optimal sized skbs.

This increases TSO efficiency, and decreases number of ACK
packets.
====================

Link: https://lore.kernel.org/r/20240418214600.1291486-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>