linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: chia-yu.chang@nokia-bell-labs.com, edumazet@google.com,
	parav@nvidia.com, linux-doc@vger.kernel.org, corbet@lwn.net,
	horms@kernel.org, dsahern@kernel.org, kuniyu@google.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-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 03/14] net: update commnets for SKB_GSO_TCP_ECN and SKB_GSO_TCP_ACCECN
Date: Thu, 6 Nov 2025 12:26:28 +0100	[thread overview]
Message-ID: <1c79daaf-c092-4c49-a715-52aeb9688b48@redhat.com> (raw)
In-Reply-To: <f98d3cab-7668-4cf0-87bf-cd96ca5f7a5b@redhat.com>

On 11/6/25 12:06 PM, Paolo Abeni wrote:
> On 10/30/25 3:34 PM, chia-yu.chang@nokia-bell-labs.com wrote:
>> From: Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com>
>>
>> No functional changes.
>>
>> Co-developed-by: Ilpo Järvinen <ij@kernel.org>
>> Signed-off-by: Ilpo Järvinen <ij@kernel.org>
>> Signed-off-by: Chia-Yu Chang <chia-yu.chang@nokia-bell-labs.com>
>> ---
>>  include/linux/skbuff.h | 13 ++++++++++++-
>>  1 file changed, 12 insertions(+), 1 deletion(-)
>>
>> diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
>> index a7cc3d1f4fd1..74d6a209e203 100644
>> --- a/include/linux/skbuff.h
>> +++ b/include/linux/skbuff.h
>> @@ -671,7 +671,12 @@ enum {
>>  	/* This indicates the skb is from an untrusted source. */
>>  	SKB_GSO_DODGY = 1 << 1,
>>  
>> -	/* This indicates the tcp segment has CWR set. */
>> +	/* For Tx, this indicates the first TCP segment has CWR set, and any
>> +	 * subsequent segment in the same skb has CWR cleared. This cannot be
>> +	 * used on Rx, because the connection to which the segment belongs is
>> +	 * not tracked to use RFC3168 or Accurate ECN, and using RFC3168 ECN
>> +	 * offload may corrupt AccECN signal of AccECN segments.
>> +	 */
> 
> The intended difference between RX and TX sounds bad to me; I think it
> conflicts with the basic GRO design goal of making aggregated and
> re-segmented traffic indistinguishable from the original stream. Also
> what about forwarded packet?

Uhm... I missed completely the point that SKB_GSO_TCP_ECN is TX path
only, i.e. GRO never produces aggregated SKB_GSO_TCP_ECN packets. Except
virtio_net uses it in the RX path ( virtio_net_hdr_to_skb ). Please
clarify the statement accordingly.

/P



  reply	other threads:[~2025-11-06 11:26 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-30 14:34 [PATCH v5 net-next 00/14] AccECN protocol case handling series chia-yu.chang
2025-10-30 14:34 ` [PATCH v5 net-next 01/14] tcp: try to avoid safer when ACKs are thinned chia-yu.chang
2025-11-06 10:57   ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 02/14] gro: flushing when CWR is set negatively affects AccECN chia-yu.chang
2025-11-06 11:01   ` Paolo Abeni
2025-11-06 11:08     ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 03/14] net: update commnets for SKB_GSO_TCP_ECN and SKB_GSO_TCP_ACCECN chia-yu.chang
2025-11-06 11:06   ` Paolo Abeni
2025-11-06 11:26     ` Paolo Abeni [this message]
2025-11-11 11:02       ` Chia-Yu Chang (Nokia)
2025-10-30 14:34 ` [PATCH v5 net-next 04/14] selftests/net: gro: add self-test for TCP CWR flag chia-yu.chang
2025-10-30 14:34 ` [PATCH v5 net-next 05/14] tcp: L4S ECT(1) identifier and NEEDS_ACCECN for CC modules chia-yu.chang
2025-11-06 11:38   ` Paolo Abeni
2025-11-11 11:02     ` Chia-Yu Chang (Nokia)
2025-11-12 14:50       ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 06/14] tcp: disable RFC3168 fallback identifier " chia-yu.chang
2025-11-06 11:42   ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 07/14] tcp: accecn: handle unexpected AccECN negotiation feedback chia-yu.chang
2025-11-06 11:45   ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 08/14] tcp: accecn: retransmit downgraded SYN in AccECN negotiation chia-yu.chang
2025-11-06 11:47   ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 09/14] tcp: move increment of num_retrans chia-yu.chang
2025-11-06 11:56   ` Paolo Abeni
2025-11-06 12:03     ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 10/14] tcp: accecn: retransmit SYN/ACK without AccECN option or non-AccECN SYN/ACK chia-yu.chang
2025-11-06 12:07   ` Paolo Abeni
2025-11-11 11:02     ` Chia-Yu Chang (Nokia)
2025-10-30 14:34 ` [PATCH v5 net-next 11/14] tcp: accecn: unset ECT if receive or send ACE=0 in AccECN negotiaion chia-yu.chang
2025-11-06 12:17   ` Paolo Abeni
2025-11-06 17:30     ` Chia-Yu Chang (Nokia)
2025-10-30 14:34 ` [PATCH v5 net-next 12/14] tcp: accecn: fallback outgoing half link to non-AccECN chia-yu.chang
2025-11-06 12:18   ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 13/14] tcp: accecn: detect loss ACK w/ AccECN option and add TCP_ACCECN_OPTION_PERSIST chia-yu.chang
2025-11-06 12:21   ` Paolo Abeni
2025-10-30 14:34 ` [PATCH v5 net-next 14/14] tcp: accecn: enable AccECN chia-yu.chang
2025-11-06 12:24   ` Paolo Abeni
2025-10-31  0:56 ` [PATCH v5 net-next 00/14] AccECN protocol case handling series Jakub Kicinski
2025-10-31  7:32   ` Chia-Yu Chang (Nokia)
2025-10-31 14:06     ` Jakub Kicinski
  -- strict thread matches above, loose matches on Subject: below --
2025-10-29  8:05 chia-yu.chang
2025-10-29  8:05 ` [PATCH v5 net-next 03/14] net: update commnets for SKB_GSO_TCP_ECN and SKB_GSO_TCP_ACCECN chia-yu.chang

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=1c79daaf-c092-4c49-a715-52aeb9688b48@redhat.com \
    --to=pabeni@redhat.com \
    --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=ij@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@google.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=parav@nvidia.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).