Article View: linux.kernel.netdev
Article #10391Re: [PATCH net v4 3/4] ipmr: set up GSO state for tunnel vifs
From: Simon Horman
Date: Tue, 03 Nov 2026 12:44
Date: Tue, 03 Nov 2026 12:44
20 lines
8946 bytes
8946 bytes
On Sun, Nov 01, 2026 at 05:42:31PM +0100, Julius Bairaktaris wrote:
> ip_encap() pushes the outer IPv4 header but does not set SKB_GSO_IPXIP4,
> skb->encapsulation or the inner headers. A GSO packet forwarded to a
> VIFF_TUNNEL vif is then rejected by ipip_gso_segment() and dropped in
> validate_xmit_skb(), after being counted as sent. A device with UDP
> segmentation offload is handed a GSO packet whose transport header
> points at the inner IP header.
>
> Call iptunnel_handle_offloads() and skb_set_inner_ipproto() as
> ipip_tunnel_xmit() does, reserve one outer IP ID per segment as
> iptunnel_xmit() does, and set the outer length with iph_set_totlen(),
> since a GSO packet plus the outer header can exceed 64 KB. A GSO packet
> that GRE or UDP tunnel GRO marked as encapsulated already uses the inner
> headers for its own tunnel; drop it, as segmentation did before.
>
> Fixes: 9fd1ff5d2ac7 ("udp: Support UDP fraglist GRO/GSO.")
> Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261103124414.GL865646@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355602-linux-kernel-netdev=dewy.ruReferences:
<cover.1792838740.git.julius@bairaktaris.de> <529dd7ba1395f17c0b328ab2a597769809cbe720.1792838740.git.julius@bairaktaris.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355602-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v4 3/4] ipmr: set up GSO state for tunnel vifs Date: Tue, 3 Nov 2026 12:44:14 +0000 Organization: Usenet Network Message-ID: <20261103124414.GL865646@horms.kernel.org> References: <cover.1792838740.git.julius@bairaktaris.de> <529dd7ba1395f17c0b328ab2a597769809cbe720.1792838740.git.julius@bairaktaris.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3177279"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:8744RN2jfh7jT1YmC7H2f1K576k= sha256:6GJhKRBnVit+m3PAN/zgN4VTWZpg76MOui0UA8R7ZAI= sha1:QAB9HrC+NKIjUsbcrnGjzwkAmPw= sha256:kwkih2+chavmJa2oSBJIhmTnfivC0AKPVGObsSnMBDI= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id B727E1128B7; Tue, 3 Nov 2026 16:44:34 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xpOJ1pgoaDiV; Tue, 3 Nov 2026 16:44:32 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355602-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 0114B1128B3; Tue, 3 Nov 2026 16:44:23 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 1B11A61DF4; Tue, 3 Nov 2026 12:45:15 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793709861; b=nr7u+tWh1rHKPrKGt3VbLyZ07CRx5Sb/FRFHLPDGiafLBcsYWcGFf2c1/brJ+Q9dwcjN TIur3Z+U1tNbSPz0WxTr+jf+pC3l4GO/1+vivb96qibdGTA2CrHnTlO6jpt70Jrz/Oxtn dk4lPE3wbDsptruCmT9YR4S/NNZ+iWT0dsx/Ods2Gsn4uK3SvENg4jIHhUu8U5StFcJMG aMnHzC8buWxr2d4XsVt1/TWY0qN1nTSDRga2gI2Jlkg9eyDp5bkm0s4M94goLyOzB5l1q mDY67KMHdvvPkzbeRq15T1j3NbtE19LnhS9pXP9fMLKFxU8P3eXBoWJlbQHJpmYvvwg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793709861; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=atMkXfqr6wyCsQOzsxiGqMDY9n0JIabptthQIwanW2g=; b=hMueoYdevm5K07IhPK1P+3z6UBrdVm6+wy0pGktUQ/REemIpdfNbiK8fmf8ytIw3WgGG zDWbAWaMNnlwqjbGrHpklqkEMV1RykyWY7u39UpXNuWXVdzWQtCeW+HtIkiU9scuoR9GR AxA7sZX20i3r4qqN1XkwP7WvTZhvOw9Y7xfUEeEmI/V/tdSE6g90t3u/7mizMovt47nd3 +e8OwOLpWmeGphYxuQk6EEahsQ7JtmYcW+JoXW+gAfThPPkYfq8eqsCRoZu9KArQ7HOfL yEMkw8s+4OoKSjLQ2wqCm7kHIuprDdp36T76oqd0VZahcNZMqoksI+emxFxU6c46c7g== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ro50EDUf; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64B06606D827; Tue, 3 Nov 2026 12:44:21 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ro50EDUf X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793709860; b=xBcHpvGmWuEx4FU2b+M7t0TlfSQVaFJzSY3a2OYCMLLj6neO0sFf+iatYdgApzwoOzMz TKska/g0I/UksHtv0iEabg9GQM5w5zG8m8pDcbRcO/mn+sqCL5o1BTwUnXJEKXKTpEciR MFiJWC2kFed+wSBCmR0A+bH8yvgVKN06TUPNWm6pcUIp7ZYGxOXonCvKU1B1/h16a4j50 2W7fH/ZbyDqreXn+dn6PZXX5G4vqilbNU+u+SlX8D6LLiQtCpUNEI2NNHquxPs+ztCsSD LLYeV1xykxaxxCSlcLyrjKKjjOaOcWA9cut4RRGigM1jOVaOmu1Tzk4OAo8HkPJKmkg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793709860; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=atMkXfqr6wyCsQOzsxiGqMDY9n0JIabptthQIwanW2g=; b=WQH4VKqiAnaOLH3c1Jw/tQGW+aM+2qzpFYxH+hmj7GCCWSLjh3RB901EJXM0TN78ylvX EFRgxEdajAHPohgUkQ0kJRARB/RejJtQhaTdiZWfUkR9oYfcqEZdbhUSzJUH33VhR9y9n 03a2JJEMDWJ3DsR3aXt2P1r70fG3NEjEefcPHzeou+CfTKim0lUGMRFErudCYaShnqB2i eTVvly3rvJ5jQ44mFSSiMYkfuAe411FWIsN1Y4uTtbqjvCNXLuy8dxHaAKf52Yzx1q1KV ObDfa4qHWuhO7lKDlEI/tx3uoiGeW/+RwI30wvOHqUjs4kCZJgG+AUAbRgdC/TKpSfQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ro50EDUf; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 478D0606A324; Tue, 3 Nov 2026 12:44:20 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07A961F000C1; Tue, 3 Nov 2026 12:44:16 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793709859; bh=atMkXfqr6wyCsQOzsxiGqMDY9n0JIabptthQIwanW2g=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Ro50EDUf2JTOPvvt1KsKyd5ZxD3Rd3dNDEvWdjTOB0lWyYtUk74h0ifOtV5ZkUi5r j7GjzVO7aTRF7QqvyZNhHjgP3ar+XhjYPW7PoHoJWYzH2FwWernPHKZv7clJD0M4fr l5UXp+dOcxEtd/T9KW0aoxkZgbrc8nHX8vzTMvImkOcQdVruJzGv1YxP+ALbp0PztD 0OkoKXJmhzYtXUtnVyf4GzTEn0K6f58E5lKA0eSEPNynANIclGvU9RBrOEKK1PduBF lK60ryoX/xPDB0zA4mACM1ki2WKCSbPdq85Fnhq3Kx5KXh6iqDXRvLlz/ohSGDw+8B YT0tCSz1aumEA== X-Cc: netdev@vger.kernel.org, dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, steffen.klassert@secunet.com, willemb@google.com, jiayuan.chen@linux.dev, mfleming@cloudflare.com, almasrymina@google.com, bigeasy@linutronix.de, richardbgobert@gmail.com, ecree.xilinx@gmail.com, linux-kernel@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <529dd7ba1395f17c0b328ab2a597769809cbe720.1792838740.git.julius@bairaktaris.de>