🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Matthieu Baerts Fri, 20 Nov 2026 14:58
Re: [PATCH v3 net-next 3/7] tcp: Stop collapsing if not bloated.
#19852
Author: Matthieu Baerts
Date: Fri, 20 Nov 2026 14:58
46 lines
12580 bytes
Hi Kuniyuki,

On 19/11/2026 08:15, Kuniyuki Iwashima wrote:
> Even when a skb is not bloated, tcp_collapse() starts collapsing
> if the next skb has overlapping data.
> 
> Also, tcp_collapse() does not stop until it reaches the tail or
> unmergable skb (SYN/FIN, unreadable frags).

(...)

> On the other hand, if an overlapping skb on the OOO rbtree cannot
> be collapsed, we skip the range instead of breaking out, as
> splitting the range could insert the tail nskb after that skb and
> break the same rbtree ordering.

Thank you for having added this ...

> Another notable thing is that tcp_skb_can_collapse_rx() now checks
> candidates against the first skb before mptcp_skb_ext_move(),
> not against each nskb.
> 
> When a skb with an MPTCP ext spans multiple nskbs, collapsing
> previously stopped at the next skb with the same ext because later
> nskbs lacked the ext.
> 
>    skb1 (ext A),                  skb2 (ext A)
>   nskb1 (ext A), nskb2 (no ext)             ^
>                         ^- not collapsible -'
> 
> Now such skbs are also collapsed with the redundant ext dropped,
> while the first nskb still carries the same mapping in sequence
> order.
> 
>    skb1 (ext A),                  skb2 (ext A)
>   nskb1 (ext A), nskb2 (no ext) <-' collapsed into nskb2

... and that!

Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads