From: "Chia-Yu Chang (Nokia)" <chia-yu.chang@nokia-bell-labs.com>
To: Eric Dumazet <edumazet@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kuba@kernel.org" <kuba@kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"kuniyu@google.com" <kuniyu@google.com>,
"ij@kernel.org" <ij@kernel.org>,
"ncardwell@google.com" <ncardwell@google.com>,
"koen0607@gmail.com" <koen0607@gmail.com>,
"g.white@cablelabs.com" <g.white@cablelabs.com>,
"ingemar.s.johansson@ericsson.com"
<ingemar.s.johansson@ericsson.com>,
"mirja.kuehlewind@ericsson.com" <mirja.kuehlewind@ericsson.com>,
"cheshire@apple.com" <cheshire@apple.com>,
"rs.ietf@gmx.at" <rs.ietf@gmx.at>,
"Jason_Livingood@comcast.com" <Jason_Livingood@comcast.com>,
"vidhi_goel@apple.com" <vidhi_goel@apple.com>,
"Mike_Rudolph@comcast.com" <Mike_Rudolph@comcast.com>,
"Jeff_Howe@comcast.com" <Jeff_Howe@comcast.com>,
"srichard@netapp.com" <srichard@netapp.com>
Subject: RE: [PATCH net-next v4 2/4] tcp: rename ECN transmit helper function
Date: Sun, 29 Nov 2026 16:50:31 +0000 [thread overview]
Message-ID: <AS2PR07MB91235EDFAAF930ACB746BBA6A34F2@AS2PR07MB9123.eurprd07.prod.outlook.com> (raw)
In-Reply-To: <CAL4WiiqgAmakzRozSD8RvieAyriXJQSJ57kpD35ja6Tz5BB8BQ@mail.gmail.com>
> -----Original Message-----
> From: Eric Dumazet <edumazet@kernel.org>
> Sent: Thursday, November 19, 2026 8:00 PM
> To: Chia-Yu Chang (Nokia) <chia-yu.chang@nokia-bell-labs.com>
> Cc: linux-kernel@vger.kernel.org; kuba@kernel.org; netdev@vger.kernel.org; pabeni@redhat.com; davem@davemloft.net; kuniyu@google.com; ij@kernel.org; ncardwell@google.com; koen0607@gmail.com; g.white@cablelabs.com; ingemar.s.johansson@ericsson.com; mirja.kuehlewind@ericsson.com; cheshire@apple.com; rs.ietf@gmx.at; Jason_Livingood@comcast.com; vidhi_goel@apple.com; Mike_Rudolph@comcast.com; Jeff_Howe@comcast.com; srichard@netapp.com
> Subject: Re: [PATCH net-next v4 2/4] tcp: rename ECN transmit helper function
>
>
> CAUTION: This is an external email. Please be very careful when clicking links or opening attachments. See the URL nok.it/ext for additional information.
>
>
>
> Le jeu. 19 nov. 2026 à 19:01, <chia-yu.chang@nokia-bell-labs.com> a écrit :
> >
> > From: Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com>
> >
> > Rename INET_ECN_xmit_ect_1_negotiation() to
> > INET_ECN_xmit_negotiation_ect(). The previous name suggests that the
> > helper always uses ECT(1), while it actually chooses the ECT codepoint
> > to be used during the ECN negotiation.
> >
> > This renaming also prepares for the introduction of a similarly named
> > helper function for established connections in the followup patch.
> >
> > Signed-off-by: Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com>
> >
> > --
> > v3:
> > - Rename helper to better reflect its behavior
> > ---
> > include/net/tcp_ecn.h | 6 +++---
> > net/ipv4/tcp_cong.c | 4 ++--
> > 2 files changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/include/net/tcp_ecn.h b/include/net/tcp_ecn.h index
> > 865d5c5a7718..9ca016d98972 100644
> > --- a/include/net/tcp_ecn.h
> > +++ b/include/net/tcp_ecn.h
> > @@ -33,7 +33,7 @@ enum tcp_accecn_option { };
> >
> > /* Apply either ECT(0) or ECT(1) based on TCP_CONG_ECT_1_NEGOTIATION
> > flag */
>
> While you are renaming it, please expand this comment, it is rather cryptic. Something like :
>
> /**
> * INET_ECN_xmit_negotiation_ect - set the ECT codepoint used before CA init
> * @sk: TCP socket
> *
> * Mark the socket ECN-capable for the packets sent while ECN is still being
> * negotiated (SYN, SYN-ACK), i.e. before tcp_init_congestion_control() runs.
> *
> * The codepoint is chosen by the congestion control module:
> * ECT(1) if it sets TCP_CONG_ECT_1_NEGOTIATION, ECT(0) otherwise.
> *
> * This does not decide whether ECT should be sent at all: callers only use
> * it when the module (TCP_CONG_NEEDS_ECN) or a BPF program asked for ECT
> * on these packets.
> *
> * This changes the socket TOS/tclass, not a single packet, so the codepoint
> * stays in effect until tcp_init_congestion_control() or tcp_ecn_send()
> * selects the one used for the established flow.
> */
>
> The helper added in patch 3 (INET_ECN_xmit_established_ect()) would deserve the same treatment, so that the split between the two is clear.
Yes, this will be added in the next version.
Thanks.
Chia-Yu
next prev parent reply other threads:[~2026-11-29 16:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 18:01 [PATCH net-next v4 0/4] TCP Prague preparation series chia-yu.chang
2026-11-19 18:01 ` [PATCH net-next v4 1/4] tcp: export CE count in rate_sample chia-yu.chang
2026-11-19 18:46 ` Eric Dumazet
2026-11-29 16:50 ` Chia-Yu Chang (Nokia)
2026-11-19 18:01 ` [PATCH net-next v4 2/4] tcp: rename ECN transmit helper function chia-yu.chang
2026-11-19 18:59 ` Eric Dumazet
2026-11-29 16:50 ` Chia-Yu Chang (Nokia) [this message]
2026-11-19 18:01 ` [PATCH net-next v4 3/4] tcp: add TCP_ECN_SEND_ECT_1 flag for congestion control chia-yu.chang
2026-11-19 18:48 ` Eric Dumazet
2026-11-29 16:50 ` Chia-Yu Chang (Nokia)
2026-11-19 18:01 ` [PATCH net-next v4 4/4] tcp: add MSS ceiling callback " chia-yu.chang
2026-11-19 18:54 ` Eric Dumazet
2026-11-29 16:50 ` Chia-Yu Chang (Nokia)
2026-11-19 18:41 ` [PATCH net-next v4 0/4] TCP Prague preparation series Eric Dumazet
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=AS2PR07MB91235EDFAAF930ACB746BBA6A34F2@AS2PR07MB9123.eurprd07.prod.outlook.com \
--to=chia-yu.chang@nokia-bell-labs.com \
--cc=Jason_Livingood@comcast.com \
--cc=Jeff_Howe@comcast.com \
--cc=Mike_Rudolph@comcast.com \
--cc=cheshire@apple.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=g.white@cablelabs.com \
--cc=ij@kernel.org \
--cc=ingemar.s.johansson@ericsson.com \
--cc=koen0607@gmail.com \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mirja.kuehlewind@ericsson.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rs.ietf@gmx.at \
--cc=srichard@netapp.com \
--cc=vidhi_goel@apple.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
all inboxes | Powered by JetHome®