Re: [PATCH net-next v4 3/4] selftests/net: packetdrill: add TCP black hole detection tests
From: Neal Cardwell
Date: Sat Nov 14 2026 - 11:14:26 EST
On Tue, Nov 10, 2026 at 11:46 AM Yongjian Wang via B4 Relay
<devnull+echoowall.gmail.com@xxxxxxxxxx> wrote:
>
> From: Yongjian Wang <echoowall@xxxxxxxxx>
>
> Black hole detection (net.ipv4.tcp_mtu_probing=1) has no selftest
> coverage.
>
> Add a test that only sets tcp_mtu_probing=1 on top of the default
> settings. A full-sized segment keeps timing out without any ICMP
> feedback. Check that the MSS drops to tcp_base_mss once tcp_retries1
> is exceeded, and that the smaller MSS is also used for new data after
> the retransmission is acknowledged.
>
> Add a shorter variant with tcp_retries1=1 and TLP disabled, so that
> every retransmission comes from the RTO timer, which is what
> tcp_write_timeout() counts.
>
> Signed-off-by: Yongjian Wang <echoowall@xxxxxxxxx>
> ---
Reviewed-by: Neal Cardwell <ncardwell@xxxxxxxxxx>
Thanks!
neal