From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B80042EA480 for ; Sun, 1 Feb 2026 09:01:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769936488; cv=none; b=RSYjdHnq36VaHbmTCq5EqFVraWHr1aLwTJaOL179HXholYm6ZUkRiHnzwa2Dxfb/8KQRI/NrPnlOjopjuYRphKeSafRz4Om3j0UlCz0VzDfMi4MUs9XOpF/fjD7V6KmqBxc5lNPIGFGD5uznrUy7MifpNgrYpGrHN1fqg02OoCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769936488; c=relaxed/simple; bh=uLCjGvitM7MZI+iiZOhsAyamc3vLUAP3Bnzyj3zmxmw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ez454aGMXpGbOAP0hnwFVM8FgNFlnntoxhxe7AfJiFQUZuEI7//N++qWFTkuPdryn6aHF4deQwGmSDni2j6ZNssmyNJ4RAJcjVhGxcptx9BLDk8ToiCLGXfDfrgRKsz8mwumxXtSIHzWgmMJ8K2srAPcW4LD5eTRk2z9+VQ+PR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XK9lUsSg; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=U1PRsJnp; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XK9lUsSg"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="U1PRsJnp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769936485; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PbdMtd8ZV0Hoqg/gvmWguCwsRV3oQaDigUGA5FFlPEw=; b=XK9lUsSgv5NmGKEW2yTbUcVZFlIN3gn6FVpOPZzTGj2iAkW6M30LRWxWBpmXbgMYy2zEx4 UmOIm8j8nIfsLX05vipwZJ4njvGoLoJmOMchwA3pBhCJKiaE7YOXEPMnz0TBmZOaKHP1uf Gh9ewvy+u49vmQVe2LPZZ50PPddgPA0= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-587-pmorD494OtOHiGxktNgkqQ-1; Sun, 01 Feb 2026 04:01:24 -0500 X-MC-Unique: pmorD494OtOHiGxktNgkqQ-1 X-Mimecast-MFC-AGG-ID: pmorD494OtOHiGxktNgkqQ_1769936483 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-430fe16b481so2252091f8f.3 for ; Sun, 01 Feb 2026 01:01:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1769936483; x=1770541283; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=PbdMtd8ZV0Hoqg/gvmWguCwsRV3oQaDigUGA5FFlPEw=; b=U1PRsJnpLnDt6xCnPPIfMra8LELIvxROw7qE+hyB2URGbVFeGBJYqSDEMOJTQHzdz0 sDU/W86iLqgbUjCCjzfMTgiU1RUqOMJX4JYQ0GkjXnFS9s+vz2IFyaZW2m+2IpTBPcnL aUkKcz2iMSl9NkFKMkFjzOqGutRASDRxfHCHm15rFQHSvFKhQOG87K8K5aY3Acvgq2jM tq0Pm/CPPV7qmTU98/vkqmKTyQXUECl0Elpu9fFtMSj3Sq42fkHau7FchxSsoW7j+wny +R1Zm2Eg7mDrF1pwYypkCy5597RqUFl3s47MSvwzspuQwKubwTmJnQjzE9Ny1gG/YxQ8 sDtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769936483; x=1770541283; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PbdMtd8ZV0Hoqg/gvmWguCwsRV3oQaDigUGA5FFlPEw=; b=WDtBHbhmCkF5Qk3FrvGfcy3O2sMBbNJKEbwYKeRjKaeIOzdifspPRgwILhkFPxJfvK EFAjtK/Qcg1EjrjAYsxtUotdqI865OdG2TX00h8geLX0evUVxBf7YyozFLzxfQOqzRkz vzAMogrBxn0dC1+XQC/Tq37ui9r0Q6ocdPtfACln+jnzcjrXzdLHYJVXWya0t+sTzUtT +Q2YKgmlZwmUTttSeZMdW70Z3d86roHhLXzcfiZMW9KMFLC4tHicwP8AW24kw0hSwWd3 2F0e0bVt7xH8HRotAv8EOWmTjlhwgo2OTCR94VvttAO0+ZolUU0PvaxRJYX4//4GFmDg FHZw== X-Forwarded-Encrypted: i=1; AJvYcCVd7yCIh8nJ0wh83y1g9JPRgbGUbUk3IG7kMoeXyFG30hX3HFzh3UtERsXl+zl0Uozl5OWIAZj2wlo=@vger.kernel.org X-Gm-Message-State: AOJu0YxxgIivz9OaoubDFQloErFgHusn9z1iypxcdaJxUY0nk+IXTvAl s1VUbC/0qSQsGEBez+QFY2gQVBk8rNQab5eB37uXqTj1P15QSmTVcXttWWc8O64kefPLKw27JSf 6R1/yHiruFtg+6CCqLTeCqIWAO7mZu15qxl0B71zz53Psuk3rvHVnK5iZFdb0sQ== X-Gm-Gg: AZuq6aKPPMZvIRwrQHIlv0CKp/xrf/jJL7tCv/gT4wOYrR3RAbsPjfjfMyjeTLABouH bqJBenL36iHVbOc8tIxBB2Kj3hppfuJmpO0ALrbK37XJ+3i5OOm0T4axrvBPBmeNITcKICA3xCU 0RancWYtCEiAMfHbXVnbi9MH8/RI0SdzmWjnf1cZsb073dAbeWsjoJYbLgvhvbeQBjdWRk2qvZi B2CGmV5T8S2wRZLz1R5tRGQ/BK6oCdjZ2MQENNq2WOLEtDf4JuJai/ixQja8FIldAa6BtnpM4Mc SdYcl5Ai5ALdo2eLIoFBMOn9mzCz1kX9H6rHZNVzeuVkt/Jq1aEpI1RzpAdO/rHdIYPTyh8XG1+ eB826csYkk8iEOJlPcD7qFeAKGUCDX+Uo9A== X-Received: by 2002:a05:6000:2883:b0:430:f742:fbb4 with SMTP id ffacd0b85a97d-435f3aaea5bmr11593870f8f.43.1769936482922; Sun, 01 Feb 2026 01:01:22 -0800 (PST) X-Received: by 2002:a05:6000:2883:b0:430:f742:fbb4 with SMTP id ffacd0b85a97d-435f3aaea5bmr11593790f8f.43.1769936482295; Sun, 01 Feb 2026 01:01:22 -0800 (PST) Received: from redhat.com (IGLD-80-230-34-155.inter.net.il. [80.230.34.155]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e131ce70sm36590005f8f.27.2026.02.01.01.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Feb 2026 01:01:21 -0800 (PST) Date: Sun, 1 Feb 2026 04:01:16 -0500 From: "Michael S. Tsirkin" To: chia-yu.chang@nokia-bell-labs.com Cc: tariqt@nvidia.com, linux-rdma@vger.kernel.org, shaojijie@huawei.com, shenjian15@huawei.com, salil.mehta@huawei.com, mbloch@nvidia.com, saeedm@nvidia.com, leon@kernel.org, eperezma@redhat.com, brett.creeley@amd.com, jasowang@redhat.com, virtualization@lists.linux.dev, xuanzhuo@linux.alibaba.com, pabeni@redhat.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 v1 net-next 1/3] net: update commnets for SKB_GSO_TCP_ECN and SKB_GSO_TCP_ACCECN Message-ID: <20260201040043-mutt-send-email-mst@kernel.org> References: <20260131225510.2946-1-chia-yu.chang@nokia-bell-labs.com> <20260131225510.2946-2-chia-yu.chang@nokia-bell-labs.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260131225510.2946-2-chia-yu.chang@nokia-bell-labs.com> On Sat, Jan 31, 2026 at 11:55:08PM +0100, chia-yu.chang@nokia-bell-labs.com wrote: > From: Chia-Yu Chang > > No functional changes. > > Co-developed-by: Ilpo Järvinen > Signed-off-by: Ilpo Järvinen > Signed-off-by: Chia-Yu Chang Subject: comments? > --- > include/linux/skbuff.h | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > > diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h > index e6bfe5d0c525..30a8dc4233ba 100644 > --- a/include/linux/skbuff.h > +++ b/include/linux/skbuff.h > @@ -671,7 +671,13 @@ 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. However, because > + * the connection to which the segment belongs is not tracked to use > + * RFC3168 or AccECN (RFC9768), and using RFC3168 ECN offload may clear > + * ACE signal (CWR is one of it). Therefore, this cannot be used on Rx. > + * Instead, SKB_GSO_TCP_ACCECN shall be used to avoid CWR corruption. > + */ > SKB_GSO_TCP_ECN = 1 << 2, > > __SKB_GSO_TCP_FIXEDID = 1 << 3, > @@ -706,6 +712,14 @@ enum { > > SKB_GSO_FRAGLIST = 1 << 18, > > + /* For TX, this indicates the TCP segment uses the CWR flag as part of > + * ACE signal, and the CWR flag is not modified in the skb. For RX, any > + * CWR flagged segment must use SKB_GSO_TCP_ACCECN to ensure CWR flag > + * is not cleared by any RFC3168 ECN offload, and thus keeping ACE > + * signal of AccECN segments. This is particularly used for Rx of > + * virtio_net driver in order to tell latter GSO Tx in a forwarding > + * scenario that it is NOT ok to clean CWR flag from the 2nd segment. > + */ > SKB_GSO_TCP_ACCECN = 1 << 19, > > /* These indirectly map onto the same netdev feature. > -- > 2.34.1