mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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>,
	"Olivier Tilmans (Nokia)" <olivier.tilmans@nokia.com>
Subject: RE: [PATCH net-next v4 1/4] tcp: export CE count in rate_sample
Date: Sun, 29 Nov 2026 16:50:28 +0000	[thread overview]
Message-ID: <AS2PR07MB9123233B04C50C00BE23040CA34F2@AS2PR07MB9123.eurprd07.prod.outlook.com> (raw)
In-Reply-To: <CAL4WiirdYsiR9a2BtHO4MtPtJX3st48mtfAwTvzft5JuQXT59g@mail.gmail.com>

> -----Original Message-----
> From: Eric Dumazet <edumazet@kernel.org> 
> Sent: Thursday, November 19, 2026 7:47 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; Olivier Tilmans (Nokia) <olivier.tilmans@nokia.com>
> Subject: Re: [PATCH net-next v4 1/4] tcp: export CE count in rate_sample
> 
> 
> 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: Ilpo Järvinen <ij@kernel.org>
> >
> > Store the number of newly ACKed/SACKed CE-marked packets in rate_sample.
> > This will be used by upcoming congestion control algorithms, e.g., TCP 
> > Prague, that need access to AccECN-derived congestion info.
> >
> > For RFC3168 ECN mode, acked_sacked_ce equals delivered when FLAG_ECE 
> > is present. For AccECN mode, it carries the derived CE-marked packets 
> > from AccECN options or ACE field based on RFC9768.
> >
> > Signed-off-by: Ilpo Järvinen <ij@kernel.org>
> > Co-developed-by: Olivier Tilmans <olivier.tilmans@nokia.com>
> > Signed-off-by: Olivier Tilmans <olivier.tilmans@nokia.com>
> > Co-developed-by: Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com>
> > Signed-off-by: Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com>
> >
> > --
> > v3:
> > - Improve commit message
> > - Rename ece_delta to acked_sacked_ce
> > - Remove redundant rate_sample initializer
> > ---
> >  include/net/tcp.h    |  1 +
> >  net/ipv4/tcp_input.c | 40 +++++++++++++++++++---------------------
> >  2 files changed, 20 insertions(+), 21 deletions(-)
> >
> > diff --git a/include/net/tcp.h b/include/net/tcp.h index 
> > 25d11fab1b03..4b1159e6c125 100644
> > --- a/include/net/tcp.h
> > +++ b/include/net/tcp.h
> > @@ -1353,6 +1353,7 @@ struct rate_sample {
> >         long rtt_us;            /* RTT of last (S)ACKed packet (or -1) */
> >         int  losses;            /* number of packets marked lost upon ACK */
> >         u32  acked_sacked;      /* number of packets newly (S)ACKed upon ACK */
> > +       u32  acked_sacked_ce;   /* number of packets ECE-marked upon ACK */
> 
> I presume you meant "CE-marked" instead of "ECE-marked"

Yes, I will clarify in the comment over here by saying this filed is different between AccECN and RFC3168 ECN in the next version.

Thanks.
Chia-Yu

  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) [this message]
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)
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=AS2PR07MB9123233B04C50C00BE23040CA34F2@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=olivier.tilmans@nokia.com \
    --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®