Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: kuniyu@google.com
Cc: edumazet@kernel.org, ncardwell@google.com, davem@davemloft.net,
	kuba@kernel.org, pabeni@redhat.com, willemb@google.com,
	horms@kernel.org, ycheng@google.com, kuni1840@gmail.com,
	netdev@vger.kernel.org
Subject: Re: [PATCH v1 net-next 03/10] tcp: Move struct tcp_plb_state to struct tcp_sock.
Date: Sat, 05 Dec 2026 09:17:52 +0000	[thread overview]
Message-ID: <179646227262.3146.6670251095425706683@kernel.org> (raw)
In-Reply-To: <20261204085551.1518105-4-kuniyu@google.com>

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] Stale comment after the field rename.

--

tcp: Move struct tcp_plb_state to struct tcp_sock.

This commit removes struct tcp_plb_state from struct dctcp. Its two
fields now live directly in struct tcp_sock as plb_consec_cong_rounds
and plb_pause_until, so other congestion control modules can use PLB
later. The tcp_plb_*() helpers now take only the socket. dctcp_init()
no longer clears plb_pause_until, and tcp_disconnect() resets both
fields.

> diff --git a/net/ipv4/tcp_plb.c b/net/ipv4/tcp_plb.c
> index d101a424c444c..26ca53d6fb9d8 100644
> --- a/net/ipv4/tcp_plb.c
> +++ b/net/ipv4/tcp_plb.c

[ ... ]

> @@ -70,19 +71,19 @@ void tcp_plb_check_rehash(struct sock *sk, struct tcp_plb_state *plb)
>  	 * RTO event that constrains PLB rehashing.
>  	 */
>  	max_suspend = 2 * READ_ONCE(net->ipv4.sysctl_tcp_plb_suspend_rto_sec) * HZ;
> -	if (plb->pause_until &&
> -	    (!before(tcp_jiffies32, plb->pause_until) ||
> -	     before(tcp_jiffies32 + max_suspend, plb->pause_until)))
> -		plb->pause_until = 0;
> +	if (tp->plb_pause_until &&
> +	    (!before(tcp_jiffies32, tp->plb_pause_until) ||
> +	     before(tcp_jiffies32 + max_suspend, tp->plb_pause_until)))
> +		tp->plb_pause_until = 0;

[Severity: Low]
This isn't a bug, but the comment above this block in
tcp_plb_check_rehash() still uses the old field name:

	 * end. We clear pause_until to 0 to indicate there is no recent
	 * RTO event that constrains PLB rehashing.

This patch removes pause_until, and the code below the comment now uses
tp->plb_pause_until. Should the comment say plb_pause_until?

The later patch "tcp: Factorise tcp_plb_rehash()" moves this comment
into tcp_plb_rehash() without changing it, so the old name is still
there at the end of the series.

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261204085551.1518105-1-kuniyu%40google.com

  parent reply	other threads:[~2026-12-05  9:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  8:54 [PATCH v1 net-next 00/10] tcp: Introduce Generic PLB Kuniyuki Iwashima
2026-12-04  8:54 ` [PATCH v1 net-next 01/10] tcp: Return early when tcp_plb_check_rehash() does not rehash a flow Kuniyuki Iwashima
2026-12-04  8:54 ` [PATCH v1 net-next 02/10] tcp: Don't call get_random_u32_below(0) in tcp_plb_update_state_upon_rto() Kuniyuki Iwashima
2026-12-04  8:54 ` [PATCH v1 net-next 03/10] tcp: Move struct tcp_plb_state to struct tcp_sock Kuniyuki Iwashima
2026-12-04 10:34   ` David Laight
2026-12-04 12:33     ` Kuniyuki Iwashima
2026-12-05  9:17   ` netdev-bot+sashiko [this message]
2026-12-04  8:54 ` [PATCH v1 net-next 04/10] tcp: Call tcp_plb_update_state_upon_rto() after rehash in tcp_write_timeout() Kuniyuki Iwashima
2026-12-05  9:17   ` netdev-bot+sashiko
2026-12-04  8:54 ` [PATCH v1 net-next 05/10] tcp: Rename tcp_plb_check_rehash() to tcp_plb_check_rehash_ecn() Kuniyuki Iwashima
2026-12-04  8:54 ` [PATCH v1 net-next 06/10] tcp: Factorise tcp_plb_rehash() Kuniyuki Iwashima
2026-12-04  8:54 ` [PATCH v1 net-next 07/10] tcp: Lower tcp_plb_suspend_rto_sec default Kuniyuki Iwashima
2026-12-04  8:54 ` [PATCH v1 net-next 08/10] tcp: Introduce Generic PLB Kuniyuki Iwashima
2026-12-05  9:17   ` netdev-bot+sashiko
2026-12-04  8:54 ` [PATCH v1 net-next 09/10] selftest: packetdrill: Add tests for " Kuniyuki Iwashima
2026-12-05  9:17   ` netdev-bot+sashiko
2026-12-04  8:54 ` [PATCH v1 net-next 10/10] selftest: net: Disable Generic PLB in ecmp_rehash.sh Kuniyuki Iwashima
2026-12-05  9:17   ` netdev-bot+sashiko
2026-12-04  9:03 ` [PATCH v1 net-next 00/10] tcp: Introduce Generic PLB netdev-bot+sinfo
2026-12-04  9:29   ` Kuniyuki Iwashima

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=179646227262.3146.6670251095425706683@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kuni1840@gmail.com \
    --cc=kuniyu@google.com \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=willemb@google.com \
    --cc=ycheng@google.com \
    /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