Re: [PATCH] tcp:provide 2 options for MSS/TSO window size: half the window or full window.

From: Neal Cardwell

Date: Wed Nov 19 2025 - 11:43:48 EST


On Wed, Nov 19, 2025 at 11:30 AM He.kai Zhang.zihan <hk517j@xxxxxxxxxxx> wrote:

Please read the following before sending your next patch:

https://docs.kernel.org/process/maintainer-netdev.html
https://docs.kernel.org/process/submitting-patches.html

Rather than attaching patches, please use "git send-email" when
sending patches, with something like the following for networking
patches:

# first check:
./scripts/checkpatch.pl *.patch
# fix any issues

# then send:
git send-email \
--to 'David Miller <davem@xxxxxxxxxxxxx>' \
--to 'Jakub Kicinski <kuba@xxxxxxxxxx>' \
--to 'Eric Dumazet <edumazet@xxxxxxxxxx>' \
--cc 'netdev@xxxxxxxxxxxxxxx' *.patch

On the specifics of your patch:

(1) Can you please send a tcpdump packet trace showing the problem you
are trying to solve, and then another trace showing the behavior after
your patch is applied?

(2) Can you please provide your analysis of why the existing code in
tcp_bound_to_half_wnd() does not achieve what you are looking for? It
already tries to use the full receive window when the receive window
is small. So perhaps all we need is to change the
tcp_bound_to_half_wnd() logic to not use half the receive window if
the receive window is less than 1 MSS or so, rather than using a
threshold of TCP_MSS_DEFAULT?

thanks,
neal