netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ij@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
Cc: chia-yu.chang@nokia-bell-labs.com, 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,
	edumazet@google.com, andrew+netdev@lunn.ch,
	 donald.hunter@gmail.com, ast@fiberby.net, liuhangbin@gmail.com,
	 shuah@kernel.org, linux-kselftest@vger.kernel.org,
	ncardwell@google.com,  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 v5 net-next 09/15] tcp: accecn: AccECN option
Date: Tue, 6 May 2025 20:49:41 +0300 (EEST)	[thread overview]
Message-ID: <eaa2db1a-dc4f-55f6-c7ef-573acf46c214@kernel.org> (raw)
In-Reply-To: <412724ed-f5a0-9749-8c50-4dd76afd4140@kernel.org>

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

On Tue, 6 May 2025, Ilpo Järvinen wrote:
> On Tue, 29 Apr 2025, Paolo Abeni wrote:
> > On 4/22/25 5:35 PM, chia-yu.chang@nokia-bell-labs.com wrote:

> > > @@ -1117,6 +1235,17 @@ static unsigned int tcp_established_options(struct sock *sk, struct sk_buff *skb
> > >  		opts->num_sack_blocks = 0;
> > >  	}
> > >  
> > > +	if (tcp_ecn_mode_accecn(tp) &&
> > > +	    sock_net(sk)->ipv4.sysctl_tcp_ecn_option) {
> > > +		int saving = opts->num_sack_blocks > 0 ? 2 : 0;
> > > +		int remaining = MAX_TCP_OPTION_SPACE - size;
> > 
> > AFACS the above means tcp_options_fit_accecn() must clear any already
> > set options, but apparently it does not do so. Have you tested with
> > something adding largish options like mptcp?
> 
> This "fitting" for AccEcn option is not to make room for the option but to 
> check if AccECN option fits and in what length, and how it can take 
> advantage of some nop bytes when available to save option space.

A minor correction. SACK blocks will naturally fill the entire option 
space if there are enough holes which would "starve" AccECN from using 
option space during loss recovery. Thus, AccECN option is allowed allowed
grab some of that space from SACK. There's redundancy in SACK blocks 
anyway so it shouldn't usually impact SACK signal much.

-- 
 i.

  parent reply	other threads:[~2025-05-06 17:49 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-22 15:35 [PATCH v5 net-next 00/15] AccECN protocol patch series chia-yu.chang
2025-04-22 15:35 ` [PATCH v5 net-next 01/15] tcp: reorganize SYN ECN code chia-yu.chang
2025-04-22 15:35 ` [PATCH v5 net-next 02/15] tcp: fast path functions later chia-yu.chang
2025-04-22 15:35 ` [PATCH v5 net-next 03/15] tcp: AccECN core chia-yu.chang
2025-04-29 10:14   ` Paolo Abeni
2025-05-05 15:24     ` Chia-Yu Chang (Nokia)
2025-05-06 13:56       ` Chia-Yu Chang (Nokia)
2025-04-22 15:35 ` [PATCH v5 net-next 04/15] tcp: accecn: AccECN negotiation chia-yu.chang
2025-04-29 10:36   ` Paolo Abeni
2025-05-05 15:59     ` Chia-Yu Chang (Nokia)
2025-04-22 15:35 ` [PATCH v5 net-next 05/15] tcp: accecn: add AccECN rx byte counters chia-yu.chang
2025-04-29 10:45   ` Paolo Abeni
2025-04-22 15:35 ` [PATCH v5 net-next 06/15] tcp: accecn: AccECN needs to know delivered bytes chia-yu.chang
2025-04-22 15:35 ` [PATCH v5 net-next 07/15] tcp: allow embedding leftover into option padding chia-yu.chang
2025-04-29 10:57   ` Paolo Abeni
2025-05-05 23:09     ` Ilpo Järvinen
2025-05-06  8:50       ` Chia-Yu Chang (Nokia)
2025-04-22 15:35 ` [PATCH v5 net-next 08/15] tcp: sack option handling improvements chia-yu.chang
2025-04-22 15:35 ` [PATCH v5 net-next 09/15] tcp: accecn: AccECN option chia-yu.chang
2025-04-29 11:56   ` Paolo Abeni
2025-05-05 21:47     ` Chia-Yu Chang (Nokia)
2025-05-05 22:54     ` Ilpo Järvinen
2025-05-06  8:48       ` Chia-Yu Chang (Nokia)
2025-05-06 17:40         ` Ilpo Järvinen
2025-05-06 17:49       ` Ilpo Järvinen [this message]
2025-04-22 15:35 ` [PATCH v5 net-next 10/15] tcp: accecn: AccECN option send control chia-yu.chang
2025-04-29 12:10   ` Paolo Abeni
2025-05-05 21:53     ` Chia-Yu Chang (Nokia)
2025-05-05 23:26       ` Ilpo Järvinen
2025-05-06  8:53         ` Chia-Yu Chang (Nokia)
2025-04-22 15:35 ` [PATCH v5 net-next 11/15] tcp: accecn: AccECN option failure handling chia-yu.chang
2025-04-29 14:08   ` Paolo Abeni
2025-04-22 15:35 ` [PATCH v5 net-next 12/15] tcp: accecn: AccECN option ceb/cep heuristic chia-yu.chang
2025-04-22 15:36 ` [PATCH v5 net-next 13/15] tcp: accecn: AccECN ACE field multi-wrap heuristic chia-yu.chang
2025-04-22 15:36 ` [PATCH v5 net-next 14/15] tcp: accecn: try to fit AccECN option with SACK chia-yu.chang
2025-04-22 15:36 ` [PATCH v5 net-next 15/15] tcp: try to avoid safer when ACKs are thinned chia-yu.chang
2025-04-29 14:11   ` Paolo Abeni
2025-04-24 17:36 ` [PATCH v5 net-next 00/15] AccECN protocol patch series Simon Horman
2025-04-26  0:32 ` Jakub Kicinski
2025-04-29  2:33   ` Neal Cardwell

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=eaa2db1a-dc4f-55f6-c7ef-573acf46c214@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=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-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).