netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ij@kernel.org>
To: "Chia-Yu Chang (Nokia)" <chia-yu.chang@nokia-bell-labs.com>
Cc: Eric Dumazet <edumazet@google.com>,
	 "pabeni@redhat.com" <pabeni@redhat.com>,
	 "linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
	 "corbet@lwn.net" <corbet@lwn.net>,
	"horms@kernel.org" <horms@kernel.org>,
	 "dsahern@kernel.org" <dsahern@kernel.org>,
	 "kuniyu@amazon.com" <kuniyu@amazon.com>,
	 "bpf@vger.kernel.org" <bpf@vger.kernel.org>,
	 "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	 "dave.taht@gmail.com" <dave.taht@gmail.com>,
	 "jhs@mojatatu.com" <jhs@mojatatu.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	 "stephen@networkplumber.org" <stephen@networkplumber.org>,
	 "xiyou.wangcong@gmail.com" <xiyou.wangcong@gmail.com>,
	 "jiri@resnulli.us" <jiri@resnulli.us>,
	 "davem@davemloft.net" <davem@davemloft.net>,
	 "andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
	 "donald.hunter@gmail.com" <donald.hunter@gmail.com>,
	 "ast@fiberby.net" <ast@fiberby.net>,
	 "liuhangbin@gmail.com" <liuhangbin@gmail.com>,
	 "shuah@kernel.org" <shuah@kernel.org>,
	 "linux-kselftest@vger.kernel.org"
	<linux-kselftest@vger.kernel.org>,
	 "ncardwell@google.com" <ncardwell@google.com>,
	 "Koen De Schepper (Nokia)"
	<koen.de_schepper@nokia-bell-labs.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>
Subject: RE: [PATCH v15 net-next 10/14] tcp: accecn: AccECN option
Date: Thu, 21 Aug 2025 20:32:59 +0300 (EEST)	[thread overview]
Message-ID: <f11c16d9-5b29-b0d8-c9bc-d6bdb49f00d1@kernel.org> (raw)
In-Reply-To: <PAXPR07MB798496F6B674558AFD2B1641A332A@PAXPR07MB7984.eurprd07.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 2698 bytes --]

On Thu, 21 Aug 2025, Chia-Yu Chang (Nokia) wrote:

> > -----Original Message-----
> > From: Eric Dumazet <edumazet@google.com> 
> > Sent: Thursday, August 21, 2025 2:30 PM
> > To: Chia-Yu Chang (Nokia) <chia-yu.chang@nokia-bell-labs.com>
> > Cc: pabeni@redhat.com; linux-doc@vger.kernel.org; corbet@lwn.net; horms@kernel.org; dsahern@kernel.org; kuniyu@amazon.com; bpf@vger.kernel.org; netdev@vger.kernel.org; dave.taht@gmail.com; jhs@mojatatu.com; kuba@kernel.org; stephen@networkplumber.org; xiyou.wangcong@gmail.com; jiri@resnulli.us; davem@davemloft.net; andrew+netdev@lunn.ch; donald.hunter@gmail.com; ast@fiberby.net; liuhangbin@gmail.com; shuah@kernel.org; linux-kselftest@vger.kernel.org; ij@kernel.org; ncardwell@google.com; Koen De Schepper (Nokia) <koen.de_schepper@nokia-bell-labs.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
> > Subject: Re: [PATCH v15 net-next 10/14] tcp: accecn: AccECN option
> > 
> > 
> > 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.
> > 
> > 
> > 
> > On Fri, Aug 15, 2025 at 1:40 AM <chia-yu.chang@nokia-bell-labs.com> wrote:
> [...]
> > >  /* Used for make_synack to form the ACE flags */ diff --git 
> > > a/include/uapi/linux/tcp.h b/include/uapi/linux/tcp.h index 
> > > bdac8c42fa82..53e0e85b52be 100644
> > > --- a/include/uapi/linux/tcp.h
> > > +++ b/include/uapi/linux/tcp.h
> > > @@ -316,6 +316,13 @@ struct tcp_info {
> > >                                          * in milliseconds, including any
> > >                                          * unfinished recovery.
> > >                                          */
> > > +       __u32   tcpi_received_ce;    /* # of CE marks received */
> > > +       __u32   tcpi_delivered_e1_bytes;  /* Accurate ECN byte counters */
> > > +       __u32   tcpi_delivered_e0_bytes;
> > > +       __u32   tcpi_delivered_ce_bytes;
> > > +       __u32   tcpi_received_e1_bytes;
> > > +       __u32   tcpi_received_e0_bytes;
> > > +       __u32   tcpi_received_ce_bytes;
> > >  };
> > >
> > 
> > We do not add more fields to tcp_info, unless added fields are a multiple of 64 bits.
> > 
> > Otherwise a hole is added and can not be recovered.
> 
> Hi Eric,
> 
> Thanks for the feedback.
> 
> Then, would it make sense to add __u32 reserved; here or this is not an 
> option?

Wouldn't it also make sense to change the byte counters to __u64?

(It won't help the alignment though if the CE counter is left __u32.)

-- 
 i.

  reply	other threads:[~2025-08-21 17:33 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-15  8:39 [PATCH v15 net-next 00/14] AccECN protocol patch series chia-yu.chang
2025-08-15  8:39 ` [PATCH v15 net-next 01/14] tcp: reorganize SYN ECN code chia-yu.chang
2025-08-15  8:39 ` [PATCH v15 net-next 02/14] tcp: fast path functions later chia-yu.chang
2025-08-15  8:39 ` [PATCH v15 net-next 03/14] tcp: reorganize tcp_sock_write_txrx group for variables later chia-yu.chang
2025-08-15  8:39 ` [PATCH v15 net-next 04/14] tcp: ecn functions in separated include file chia-yu.chang
2025-08-21  8:53   ` Eric Dumazet
2025-08-15  8:39 ` [PATCH v15 net-next 05/14] tcp: AccECN core chia-yu.chang
2025-08-15  8:39 ` [PATCH v15 net-next 06/14] tcp: accecn: AccECN negotiation chia-yu.chang
2025-08-21 12:22   ` Eric Dumazet
2025-08-15  8:39 ` [PATCH v15 net-next 07/14] tcp: accecn: add AccECN rx byte counters chia-yu.chang
2025-08-21  8:57   ` Eric Dumazet
2025-08-15  8:39 ` [PATCH v15 net-next 08/14] tcp: accecn: AccECN needs to know delivered bytes chia-yu.chang
2025-08-21 12:24   ` Eric Dumazet
2025-08-21 14:33     ` Chia-Yu Chang (Nokia)
2025-08-15  8:39 ` [PATCH v15 net-next 09/14] tcp: sack option handling improvements chia-yu.chang
2025-08-15  8:39 ` [PATCH v15 net-next 10/14] tcp: accecn: AccECN option chia-yu.chang
2025-08-21 12:29   ` Eric Dumazet
2025-08-21 14:58     ` Chia-Yu Chang (Nokia)
2025-08-21 17:32       ` Ilpo Järvinen [this message]
2025-08-21 17:46       ` Eric Dumazet
2025-09-02 12:23         ` Chia-Yu Chang (Nokia)
2025-08-15  8:39 ` [PATCH v15 net-next 11/14] tcp: accecn: AccECN option send control chia-yu.chang
2025-08-21 12:46   ` Eric Dumazet
2025-08-15  8:39 ` [PATCH v15 net-next 12/14] tcp: accecn: AccECN option failure handling chia-yu.chang
2025-08-21 12:55   ` Eric Dumazet
2025-08-22 10:00     ` Chia-Yu Chang (Nokia)
2025-08-15  8:39 ` [PATCH v15 net-next 13/14] tcp: accecn: AccECN option ceb/cep and ACE field multi-wrap heuristics chia-yu.chang
2025-08-15  8:39 ` [PATCH v15 net-next 14/14] tcp: accecn: try to fit AccECN option with SACK chia-yu.chang
2025-08-21 13:04   ` Eric Dumazet
2025-08-22 10:08     ` Chia-Yu Chang (Nokia)

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=f11c16d9-5b29-b0d8-c9bc-d6bdb49f00d1@kernel.org \
    --to=ij@kernel.org \
    --cc=Jason_Livingood@comcast.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=ast@fiberby.net \
    --cc=bpf@vger.kernel.org \
    --cc=cheshire@apple.com \
    --cc=chia-yu.chang@nokia-bell-labs.com \
    --cc=corbet@lwn.net \
    --cc=dave.taht@gmail.com \
    --cc=davem@davemloft.net \
    --cc=donald.hunter@gmail.com \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=g.white@cablelabs.com \
    --cc=horms@kernel.org \
    --cc=ingemar.s.johansson@ericsson.com \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=koen.de_schepper@nokia-bell-labs.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@amazon.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=liuhangbin@gmail.com \
    --cc=mirja.kuehlewind@ericsson.com \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rs.ietf@gmx.at \
    --cc=shuah@kernel.org \
    --cc=stephen@networkplumber.org \
    --cc=vidhi_goel@apple.com \
    --cc=xiyou.wangcong@gmail.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;
as well as URLs for NNTP newsgroup(s).