From: netdev-bot+sashiko@kernel.org
To: geliang@kernel.org
Cc: mptcp@lists.linux.dev, tanggeliang@kylinos.cn, kuba@kernel.org
Subject: Re: [PATCH mptcp-next v12 1/7] mptcp: use local variable tp in sendmsg_frag
Date: Tue, 01 Dec 2026 20:14:05 +0000 [thread overview]
Message-ID: <179615604589.3143.4501670752460435050@kernel.org> (raw)
In-Reply-To: <5ea9abd443e8c9a73c094ce92610200f438a7a58.1796019473.git.tanggeliang@kylinos.cn>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The commit message for mptcp_sendmsg_frag() in
net/mptcp/protocol.c says the new local 'tp' is used "throughout the…
- [Low] The commit author identity (Geliang Tang <geliang@kernel.org>)
does not match the only Signed-off-by trailer (Geliang Tang…
--
mptcp: use local variable tp in sendmsg_frag
This patch adds a local tcp_sock pointer named tp in
mptcp_sendmsg_frag() and uses it in place of some of the repeated
tcp_sk(ssk) calls. It is meant as a readability cleanup with no
functional change.
> Suggested-by: Paolo Abeni <pabeni@redhat.com>
> Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
[Severity: Low]
This isn't a bug, but the author address (geliang@kernel.org) does not
match the only Signed-off-by address (tanggeliang@kylinos.cn).
checkpatch warns about this as a From:/Signed-off-by: email address
mismatch.
Could you add an in-body From: line with the kylinos.cn address, or sign
off with the kernel.org address instead?
> diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
> index b9c6e5a615c8b..58cb11b25253d 100644
> --- a/net/mptcp/protocol.c
> +++ b/net/mptcp/protocol.c
> @@ -1456,6 +1456,7 @@ static int mptcp_sendmsg_frag(struct sock *sk, struct sock *ssk,
> u64 data_seq = dfrag->data_seq + info->sent;
> int offset = dfrag->offset + info->sent;
> struct mptcp_sock *msk = mptcp_sk(sk);
> + struct tcp_sock *tp = tcp_sk(ssk);
> bool zero_window_probe = false;
> struct mptcp_ext *mpext = NULL;
> bool can_coalesce = false;
[ ... ]
> @@ -1590,7 +1591,7 @@ static int mptcp_sendmsg_frag(struct sock *sk, struct sock *ssk,
> skb->truesize += copy;
> sk_wmem_queued_add(ssk, copy);
> sk_mem_charge(ssk, copy);
> - WRITE_ONCE(tcp_sk(ssk)->write_seq, tcp_sk(ssk)->write_seq + copy);
> + WRITE_ONCE(tp->write_seq, tp->write_seq + copy);
[Severity: Low]
This isn't a bug, but the commit message says tp is used "throughout the
function". Two open-coded tcp_sk(ssk) dereferences are still left in
mptcp_sendmsg_frag().
The middlebox fallback check still has:
if (unlikely(before64(data_seq, msk->snd_nxt) &&
!test_bit(MPTCP_JOINED, &msk->flags) &&
after(tcp_sk(ssk)->snd_una, subflow->opt_ack_seq))) {
A few lines below this hunk, the same write_seq field is still read
through tcp_sk(ssk):
if (unlikely(before64(data_seq, msk->snd_nxt))) {
mptcp_subflow_ctx(ssk)->old_data_end = tcp_sk(ssk)->write_seq;
mptcp_subflow_ctx(ssk)->old_data_pending = 1;
}
So tp->write_seq and tcp_sk(ssk)->write_seq now appear next to each
other. The later patches in the series do not convert these two sites
either.
Should these two sites use tp as well, or should the commit message be
reworded?
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1796019473.git.tanggeliang%40kylinos.cn
next prev parent reply other threads:[~2026-12-01 20:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 6:25 [PATCH mptcp-next v12 0/7] mptcp: add MSG_ZEROCOPY support Geliang Tang
2026-11-30 6:25 ` [PATCH mptcp-next v12 1/7] mptcp: use local variable tp in sendmsg_frag Geliang Tang
2026-11-30 6:29 ` sashiko-bot
2026-12-01 20:14 ` netdev-bot+sashiko [this message]
2026-11-30 6:25 ` [PATCH mptcp-next v12 2/7] mptcp: remove redundant orig_offset in carve_data_frag Geliang Tang
2026-11-30 6:25 ` [PATCH mptcp-next v12 3/7] mptcp: add MSG_ZEROCOPY support Geliang Tang
2026-11-30 6:56 ` sashiko-bot
2026-12-01 20:14 ` netdev-bot+sashiko
2026-11-30 6:25 ` [PATCH mptcp-next v12 4/7] mptcp: handle SO_ZEROCOPY in setsockopt Geliang Tang
2026-12-01 20:14 ` netdev-bot+sashiko
2026-11-30 6:25 ` [PATCH mptcp-next v12 5/7] Documentation: msg_zerocopy: add MPTCP support Geliang Tang
2026-12-01 20:14 ` netdev-bot+sashiko
2026-11-30 6:25 ` [PATCH mptcp-next v12 6/7] selftests: net: " Geliang Tang
2026-12-01 20:14 ` netdev-bot+sashiko
2026-11-30 6:25 ` [PATCH mptcp-next v12 7/7] selftests: mptcp: cover msg_zerocopy test Geliang Tang
2026-11-30 6:40 ` sashiko-bot
2026-12-01 20:14 ` netdev-bot+sashiko
2026-11-30 7:30 ` [PATCH mptcp-next v12 0/7] mptcp: add MSG_ZEROCOPY support MPTCP CI
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=179615604589.3143.4501670752460435050@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=geliang@kernel.org \
--cc=kuba@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=tanggeliang@kylinos.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.