From: sashiko-bot@kernel.org
To: "Geliang Tang" <geliang@kernel.org>, mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-next v10 2/4] selftests: mptcp: sockopt: check app_limited
Date: Thu, 03 Dec 2026 07:20:34 +0000 [thread overview]
Message-ID: <sashiko-outbox-247283@kernel.org> (raw)
In-Reply-To: <7ecf3c9c0a9cb09839f7c17559edc8afa32466ac.1796281059.git.tanggeliang@kylinos.cn>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] selftests: mptcp: commit message misstates app_limited subflow
push behavior
- [Low] selftests: mptcp: tcpi_delivery_rate > 0 check flakes on 0-us
loopback RTT
--
commit 042e6ce0b42dd2699eec6851a0abd9b2fc579482
Author: Geliang Tang <geliang@kernel.org>
selftests: mptcp: sockopt: check app_limited
This commit adds assertions in connect_one_server() to verify that
tcpi_delivery_rate_app_limited is 1 and tcpi_delivery_rate is positive
after a small data exchange when expect_all_features() is enabled.
> The preceding commit evaluates MPTCP-level
> conditions in mptcp_rate_check_app_limited(), stores the result in
> msk->app_limited, and calls tcp_rate_check_app_limited() on each
> scheduled subflow during push.
[Severity: Low]
Is this description of the preceding commit accurate? In commit
"mptcp: track app-limited state in mptcp_sendmsg",
__subflow_push_pending() clears msk->app_limited right after calling
tcp_rate_check_app_limited(ssk), so it only runs on the first scheduled
subflow rather than each scheduled subflow.
> diff --git a/tools/testing/selftests/net/mptcp/mptcp_sockopt.c b/tools/testing/selftests/net/mptcp/mptcp_sockopt.c
> index b8158a1198eba..f5605c7f3b994 100644
> --- a/tools/testing/selftests/net/mptcp/mptcp_sockopt.c
> +++ b/tools/testing/selftests/net/mptcp/mptcp_sockopt.c
> @@ -635,6 +635,13 @@ static void connect_one_server(int fd, int pipefd)
> do_getsockopts(&s, fd, total, total);
>
> assert(s.mptcpi_rcv_delta == (uint64_t)total);
> +
> + /* app-limited accounting only checked under EXPECT_ALL_FEATURES */
> + if (expect_all_features()) {
> + assert(s.tcp_info.tcpi_delivery_rate_app_limited == 1);
> + assert(s.tcp_info.tcpi_delivery_rate > 0);
> + }
[Severity: Low]
Can assert(s.tcp_info.tcpi_delivery_rate > 0) flake over loopback when the
exchange finishes within a single microsecond tick?
SYN-ACK does not record a rate sample because tcp_connect() increments
tp->packets_out before tcp_rate_skb_sent(), leaving the SYN's
tx.delivered_mstamp at 0. connect_one_server() then sends a single small
segment over loopback with no delay.
If both transmit and ACK processing read the same microsecond timestamp,
rs->interval_us is 0 while tcp_update_rtt_min() clamps tcp_min_rtt(tp) to
at least jiffies_to_usecs(1). tcp_rate_gen() then drops the sole rate
sample, leaving tcpi_delivery_rate at 0 and aborting the test.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1796281059.git.tanggeliang@kylinos.cn?part=2
next prev parent reply other threads:[~2026-12-03 7:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 7:00 [PATCH mptcp-next v10 0/4] prepare interfaces for kTLS and sockmap support Geliang Tang
2026-12-03 7:00 ` [PATCH mptcp-next v10 1/4] mptcp: track app-limited state in mptcp_sendmsg Geliang Tang
2026-12-03 7:22 ` sashiko-bot
2026-12-03 7:00 ` [PATCH mptcp-next v10 2/4] selftests: mptcp: sockopt: check app_limited Geliang Tang
2026-12-03 7:20 ` sashiko-bot [this message]
2026-12-03 7:00 ` [PATCH mptcp-next v10 3/4] mptcp: add sendmsg_locked to proto_ops Geliang Tang
2026-12-03 7:00 ` [PATCH mptcp-next v10 4/4] mptcp: update mptcp_check_readable Geliang Tang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-247283@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=geliang@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox