🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10382

Re: [PATCH net v4 4/4] ipmr: do not drop GSO packets that fit the MTU after segmentation

#10382
From: Simon Horman
Date: Tue, 03 Nov 2026 12:44
19 lines
8869 bytes
On Sun, Nov 01, 2026 at 05:42:32PM +0100, Julius Bairaktaris wrote:
> ipmr_prepare_xmit() drops a packet with DF set when skb->len exceeds the
> route MTU, without checking whether it is a GSO packet. A UDP multicast
> stream received with fraglist GRO or UDP GRO forwarding enabled is
> aggregated into GSO packets, and every aggregate is dropped with
> FragFails, while ip_forward() lets the same packets pass by checking
> skb_gso_validate_network_len(). Do the same for multicast routing,
> leaving room for the outer header on tunnel vifs. ip6mr has no such
> check and leaves GSO packets to ip6_output().
> 
> On an IPQ8074 router with fraglist GRO on, a 10 Mbit/s stream of
> 1316-byte DF datagrams routed by igmpproxy loses 14.5 to 15.5% (n=3)
> and 0% with this change.
> 
> 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: <20261103124438.GM865646@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-355603-linux-kernel-netdev=dewy.ru
References: <cover.1792838740.git.julius@bairaktaris.de> <3733295a358d34df6220ea924d2b710ca537cf6d.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-355603-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v4 4/4] ipmr: do not drop GSO packets that fit the
 MTU after segmentation
Date: Tue, 3 Nov 2026 12:44:38 +0000
Organization: Usenet Network
Message-ID: <20261103124438.GM865646@horms.kernel.org>
References: <cover.1792838740.git.julius@bairaktaris.de>
 <3733295a358d34df6220ea924d2b710ca537cf6d.1792838740.git.julius@bairaktaris.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3175013"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7cCqlApty65CPRLVq5JSxizZNOw= sha256:iFARvDK69wUnB9Cvy1lH8flr8/TSVHWI/rLdsje+Wwc=
	sha1:Mubivp51FOfU4xV5iU2ECi75NC0= sha256:sDnDzdaxhsU9KK4k3LNeinuglXSPRSpcTHF5glS9YVI=
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 149E41128AC; Tue,  3 Nov 2026 16:36:16 +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 pmbitBq2w1Uh;
	Tue,  3 Nov 2026 16:36:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-355603-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 312991128A8; Tue,  3 Nov 2026 16:36:05 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 8D8FFE5338; Tue,  3 Nov 2026 12:45:33 +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=1793709890;
	b=tMO0Lw7lEX0WXPFOAc+YgIcUjQN8y5dF2r9qeRhfZUWtyOa48nMo8jqEey4XVcAMnMAA
	 v6dmN6Lm5y8Hdw5O+rgWNKUPApHcuwxrPPk7SQg1sRfshgvke62FU6BWj8dOt6cYlbMyU
	 RYbdvN1DPNmOSFRZpaa4NKaoyfbk55TJEvzFySXUnqLjr9pi72oe7q7PH5GEtrXG5DCG3
	 HT+TKF4N959TjjPxD3vKef6i5Os9K+njH7c6chpyvKlgsR7V2UPIPbEisoiuVEQKCTge6
	 SVKJIohiApCa8FthdKlF5RYLylxQHkTh2kBF4BJ1Bt1PTaiA0inx5JNYQaseeZ5RF1A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793709890;
	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=Tmc7avZ1TScdVSl8+sWmq3B5heD1yOD8qxdj3oQCY1A=;
	b=BWBzHcQjg2Wce96KMc8fDLglpNWRaESIXJiVInl1thjljBbWyjMJDmzf467za3VJk4rd
	 rSPa4b5m9SWh0wM6GRCCobRM99o6mNtNFUH7BEE/2UUTAimifNNoq32rr8KXik7SqVTNv
	 06e8T51/IoHnzD513ACiQX/fe1r+6xZGgrey71eHppZ2xtoPmLvDEUHoL+byegLE3nZsD
	 G0bpg4RndTIGzcamZ1bMDIqHpovjLmuSBsR0BwcVfFYvrXL7nHzDXjuRMb0KGT5FJHfJy
	 VEdFjMbPT/iDA139J8YijBnHXjLKyyjCtyWhZ331SxcrcJC3qE3ywvVGdsNobypcBOw==
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=ozayK0xu;
	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 43D86606A337;
	Tue,  3 Nov 2026 12:44:50 +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=ozayK0xu
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=1793709884;
	b=UCCaPxbkeLrRrFB6Ghnp8EixS4ypTZ7QA0Mqvfxq6r8LAeZOzll4LboGGM+12uIr3i1G
	 593em1kTrFuGj/45u7d9kWAT1/FHCm2A8bXbbjUHRwIcDkpZ91sr86TSrH0Jd/4a2ePTn
	 H02Qux4ocfp/XJr/82cLgqwIIZ5fowjJJYBwrW6Sh9nn+2rKl00efASkqyHH8A3tSe2rg
	 4hoPCcf5ehSniDy7j0RtGhM6mUK6hA2Ug7/QqErGzum36pfav6yws49JV4mSsYSdDsrGM
	 svlJlaYb1IAb89q4w6ai3/mtBdo+wj+bHHwCVpNaurcni9C8EIDup9nMjK5NrquL5NA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793709884;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=Tmc7avZ1TScdVSl8+sWmq3B5heD1yOD8qxdj3oQCY1A=;
	b=JL1e1sCGeU5dZ9Mcm4NphZXYWYg/B/4Z+whRaLlrSA91cv40MCYwkGVkS7of1Gxez6vK
	 P9tMzU8qBQQQJi7yQv2ryT4B/TSCWx/Ji9ttIVZ/i1kS73hxWA90GvlKGtJWPEydJBksF
	 j89o40Mw9TI+QnH6CV+Age69Wux2pnBQ16UaXJcp6Njxuuw7uG8S2kzLag6W0GYJOYCds
	 czwHm8QPvD295KqaVed32HMO/5xJpdLdFcgJtCOyLfSdYb/TSVAHRJRJ9y2cBBjlc4qyn
	 M8SZu2CEz1YOE9XjgeuntYfTK/+1cnciNJXb+qv3M03KfVW54vkuHppnsI0nV93ct4w==
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=ozayK0xu;
	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 256E9606A324;
	Tue,  3 Nov 2026 12:44:43 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6A9C1F0093A;
	Tue,  3 Nov 2026 12:44:40 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793709883;
	bh=Tmc7avZ1TScdVSl8+sWmq3B5heD1yOD8qxdj3oQCY1A=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=ozayK0xu0E2zRXw3DA2tgIY4Dwsw4VmVukIXfFvJpwU+HXMyrdxtnITex7SoKVmqh
	 wSMVp//z7kLNbdxQ8CrLXiS4gyIv5FRCX60lY4L1paIHlQIEK4UcIZQC0nOYGhcpQC
	 KWl3eZeRdaGE210dw0oPU3//PqfME4xdZ0zBXevM2VjGgHIsp2aCa5L958+H/9NoQz
	 ix5tZjfEQ5FK6Q/JPExOZ/CG3ld8Y/s7G2PB3cRZCdlu5i/LUVkl7Zf+WRhfZMjBnJ
	 yXiMUrD4lq1jPcbkZptXgmImn3WKCwjXg5OE65nPMyQs0VD0ZYmXYPRe2xkgLDB0Fh
	 V3B/koq3LM14Q==
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: <3733295a358d34df6220ea924d2b710ca537cf6d.1792838740.git.julius@bairaktaris.de>