From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795686844; b=tEvoePd5d+lZZKlUt29KzsCD0s35L1uocvdvvODS9DE1NxTHZFYW3HjcV18nj35GO5Fu SWSxGAoBqYzuY69TBFyuQBCHJZBNzJmN7q5nfaDf9I5X1WDH8o9VRr3Jf2MCDGPnoCdvW qDDEvMNsaq4CWZK6Ip7blJj7OQDA+IzGc296OpNAQjPwjo2pcdPG/CiOjFwmR/PoolJmy PcbYvQrI5vF08cr7Kp9C4ZakUP7wrcdOde3eHEcXx+KJVcDzGJJY1h/qyD/kB1GSeAfCF PBdiLXgz/CFIiOguRxgMtiMwhTUBQ6py4JtTfQuhkwk989vxURsOosPxMcr+53eLoKQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795686844; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject: To:Cc:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=7CCtYtbFe6le29oXXPU1ooKs9Dx0yxyQEI4GjlG+sf0=; b=3WjXIRsJbi2R4ePfb81K1duRuWd8ISg8tPBTvDMSkSDKfPTT69JMhznzmI9I8rt/PPQt PoCjC4FlvKKMNV6H9IhWnjmoSgCLcGeMbXuvCf4HORdnOaYPL+DpE47ODttEe5e+c8GlK Hg4425I8VygIsm2pnNk782Fmbk8PGOWUhQE034s59ZnccvgK21g4DMoD5HLKwAIaTG0wO T0nxXJOdhdTvScGBNdaOqAd+EN1gTRNNRXzwyTP4u8zzxX0yp3ESMfvINO/HlrOgZaVRy E7Fc5DnAPiHg6KIoo2DVa7c/2QzkRRJOY8ASo6mazzIhaOS210WSX8fOT8H57SaLJGw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=RV9FN4OI; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=lLANQDpJ; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B5E6606A6A3 for ; Thu, 26 Nov 2026 09:54:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3B5E6606A6A3 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.a=rsa-sha256 header.s=mimecast20190719 header.b=RV9FN4OI; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=lLANQDpJ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795686843; 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=7CCtYtbFe6le29oXXPU1ooKs9Dx0yxyQEI4GjlG+sf0=; b=RV9FN4OI/ZTrw+N+1q5AxeSan5a/Mc0XQxKdy92oratGqXcj3yBvhwrtqP9sbY0AfA8van +x8uF5Gz43fNFcAlobm83Gd7p/TW29gE7YD5prLbbNFdJ34ZwbqpUzxwPFoykVXz6tMoP6 kGKAJ1P7Uxh2X4M3Tr+UZQXcMJGfi4Q= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-81-glDOEhGSOP2BHjZJAxKJvQ-1; Thu, 26 Nov 2026 09:54:01 +0000 X-MC-Unique: glDOEhGSOP2BHjZJAxKJvQ-1 X-Mimecast-MFC-AGG-ID: glDOEhGSOP2BHjZJAxKJvQ_1795686840 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4bb68d624baso36792185e9.2 for ; Thu, 26 Nov 2026 01:54:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1795686840; x=1796291640; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7CCtYtbFe6le29oXXPU1ooKs9Dx0yxyQEI4GjlG+sf0=; b=lLANQDpJub1DKFq7TEwFDOcI3TJRHlZmh/96ElOaxlirzCADY6GEeAAS0Ytz4xY9ac 5B1akJcEHITQjWhDe8R0Pnm0DnHAKpgdvwivbzSVQMYqVO2uQbxzKM/G0ulUAQBFOCbU oej8brmCszD1p185zkHyss2sZ+zOsT6Qvgpub0JOaSbzWMrEqPYip1KYARYYkNnFmv6V wu+0jdFe5/Tg9vPOBQ2dyGMB4w72BWETBgiI8GoSNbYX9y1MLJLbhsHuR347/DiYP+eO njm3nb5bzAMHRw7otWLdk9Gkb8UUOazx9ZrH/dhp1I6vG5mBOSZjRbcjITQEtmneLnVO YnsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795686840; x=1796291640; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7CCtYtbFe6le29oXXPU1ooKs9Dx0yxyQEI4GjlG+sf0=; b=dYP6qfojHxTEh8ZDF5syTu6N1CbFKfistbYbO2OOrYaFnwlSYBmVYoNTMlg2RWhdrS HGLKM62VQnvXQLm7W8XXQpqC3cEEBGWhSCw8kIHjaR07ya4hX/iPUEMNHNDoSKTdZ7I8 y3PjcccG8oja4a3u02P+WazTex1NPDy9dWzS/KEgGlAicyy7odPfDkkfyeYBlmzhZBIk 5zcw1dbKFv1SN5YVl+XvzQLu5K1Hvar8+oDr14TW7lOVIYQ4v+/6dIDHfsYusdDnhSaW StqoFFvNiWInHyZuwDqH5SHJXY0ryTjdZuY2JHr0janH8pl8w+hJSYYle87pJyvkIwqS 1qxQ== X-Forwarded-Encrypted: i=1; AL+hErEsaKfQpzWhA2y1rnvKUSCoKL+mIr9tJhBtWo2yntrTveKWgvT+CLLv2Rde9iCnM26lTg5UZTJkSuk=@vger.kernel.org X-Gm-Message-State: APuU4Z/mPPlJPr8ClWuUn0RQjOGehui9cI8X/KPswW8Djxdd3k47s/vv Mb8R8gTf7GAAdGgbL3hGMXi5M0m50qT4aaMaAtb1VDAZfug2rIuUq6nSsJ3RyzC2+UVGR+Zk/No pUWM0SGI+RsemlWcWDtvsKSheMQa+CO+64PmJu+KCKnIZyP63Wna59ZIpgLAdpQ== X-Gm-Gg: AZFdTZe0dqH+24MKq/o/nIZ6s9Rnd5/FSw6FgWMl+kpjMQ/ljQ/LfEg51P3JqS6NU2s xS5ov2psoT7gKXstKK1B0RbGLu4FXp+uibhpo5QopNHK1NSRS+94eWJ5cAGNmk9exZsDmYeBXrh Pchn4pOYjU66Ys5+rFHT/1IqRc8npTzULFdPhNpkeiw/lrDMRYTrRG98MEehIacpx6CXXzIQMwZ CWzIdJIZa+frS38TTZS1EhMQ46MOwefBYnA2gjYfh7T83tGeERoV5L2dAqduVkEHCmXWAWnwH0r tDtQqsfKSps8cRsC27mwJX93aDfuIo0OsyqqgeBeYDjZTI91E1RGZsPCOaSyvk1WlL6Z4b2XgFl XeSOzafr7BngbNP1Sp7spvJm86gi1ODr9fsSTj6dHzQ/Yxga/EMlw8DfgOIIL7oELngapBYQ2eO rkrVVNZgzonxI9U9wALvTyCQVDGz08V9xP1r8AkYBa6H6A X-Received: by 2002:a05:600c:4e16:b0:4bb:6f77:1e35 with SMTP id 5b1f17b1804b1-4bb88810991mr440507045e9.21.1795686839769; Thu, 26 Nov 2026 01:53:59 -0800 (PST) X-Received: by 2002:a05:600c:4e16:b0:4bb:6f77:1e35 with SMTP id 5b1f17b1804b1-4bb88810991mr440506695e9.21.1795686839381; Thu, 26 Nov 2026 01:53:59 -0800 (PST) Received: from [192.168.88.30] (ip231-128-192-82.pool-bba.aruba.it. [82.192.128.231]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab658e2d1bsm41250729f8f.8.2026.11.26.01.53.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Nov 2026 01:53:58 -0800 (PST) Message-ID: <34e77fff-c57b-4ed0-9035-b9682ad3914e@redhat.com> Date: Thu, 26 Nov 2026 10:53:56 +0100 X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v3 1/2] net: keep the TCP fixed-ID flags on the header they describe To: Julius Bairaktaris , netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, willemb@google.com, horms@kernel.org, andrew+netdev@lunn.ch, dsahern@kernel.org, idosch@nvidia.com, ncardwell@google.com, kuniyu@google.com, steffen.klassert@secunet.com, herbert@gondor.apana.org.au, richardbgobert@gmail.com, ecree.xilinx@gmail.com, andy.moreton@amd.com, alex.austin@amd.com, linux-net-drivers@amd.com, saeedm@nvidia.com, tariqt@nvidia.com, mbloch@nvidia.com, leon@kernel.org, linux-rdma@vger.kernel.org, alexei.starovoitov@gmail.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev, john.fastabend@gmail.com, sdf@fomichev.me, izaiahsun@gmail.com, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, shuah@kernel.org, bpf@vger.kernel.org, ipsec@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <7c74b2076dc7dee1d481d39a135e0946d5e04145.1795284858.git.julius@bairaktaris.de> Content-Language: en-US From: Paolo Abeni In-Reply-To: <7c74b2076dc7dee1d481d39a135e0946d5e04145.1795284858.git.julius@bairaktaris.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/21/26 19:26, Julius Bairaktaris wrote: > Commit 3271f19bf7b9 ("net: gso: restore ids of outer ip headers > correctly") made SKB_GSO_TCP_FIXEDID describe the outermost IPv4 header > and added SKB_GSO_TCP_FIXEDID_INNER for the inner header of an > encapsulated packet. Every path that adds or removes a header then has to > move the flags, and none does. A TCP stream that GRO merged with fixed > IDs and that is forwarded into an IPIP tunnel, or into an ESP tunnel mode > SA with crypto offload, is segmented with one outer ID for all segments > and with incrementing inner IDs. A tunnel that decapsulates such a packet > in iptunnel_pull_offloads() leaves the state of the removed outer header > on the new outer one, and the inner header of a GRE or UDP tunnel, which > segmentation reads at encap_level 0, gets the state of the outer header. > > Let SKB_GSO_TCP_FIXEDID describe the innermost IPv4 header again, as it > did before that commit, and replace SKB_GSO_TCP_FIXEDID_INNER with > SKB_GSO_TCP_FIXEDID_OUTER for the outermost header of an encapsulated > packet. Where a header is added in front of a GSO packet, in > iptunnel_handle_offloads() and in the BPF LWT encapsulation, clear the > outer flag, so that the new header gets incrementing IDs as it does on a > packet that was not encapsulated before. Clear it as well where > iptunnel_pull_offloads() and bpf_skb_net_shrink() remove the outer > header. ESP transport and BEET mode with crypto offload set > skb->encapsulation but keep the IPv4 header and its ID, so xfrm_output() > copies the inner flag to the outer one for them. Convert mlx5 and sfc, > the two drivers that use the inner flag. > > Two flags cannot describe a header between the outermost and the > innermost one of a packet with three IPv4 headers: software segmentation > uses SKB_GSO_TCP_FIXEDID for it, as it used SKB_GSO_TCP_FIXEDID_INNER > before. > > Fixes: 3271f19bf7b9 ("net: gso: restore ids of outer ip headers correctly") > Suggested-by: Alexei Starovoitov > Signed-off-by: Julius Bairaktaris This patch is IMHO too invasive for 'net' at this point of the cycle. I suggest targeting net-next in the next iteration /P