🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4801

Re: [PATCH net-next 12/15] netfilter: flowtable: set inner protocol when popping tunnel header

#4801
From: Pablo Neira Ayuso
Date: Mon, 19 Oct 2026 09:11
32 lines
7097 bytes
On Mon, Oct 19, 2026 at 01:21:28AM +0000, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found more severe
> issue(s) in other patches of this series. This mail is only an FYI, in case
> you want to address the nit picks below when you respin.
> 
> Low priority / nit picks for your consideration:
> 
> - [Low] The commit message says the patch makes nf_flow_ip_tunnel_pop()
>   pop the outer header and set skb->protocol "instead of bailing out…
> 
> Pre-existing issues:
> - [Medium] This problem wasn't introduced by this patch, but
>   nf_flow_ip_tunnel_pop() strips the outer tunnel header with plain…
> 
> --
> 
> netfilter: flowtable: set inner protocol when popping tunnel header
> 
> This commit makes nf_flow_ip_tunnel_pop() set skb->protocol from
> ctx->tun.inner_proto after it pulls the outer tunnel header. The commit
> message calls it a preliminary patch for IPv4 over IPv6 and SIT tunnel
> flowtable offload.
> 
> > Pop the outer tunnel header and set skb->protocol to the inner protocol
> > derived from ctx->tun.inner_proto in nf_flow_ip_tunnel_pop(), instead of
> > bailing out unless the tunnel carries IP-in-IP or IPv6-in-IPv6.
> 
> [Severity: Low]
> Is this description accurate?

I think description is good enough, this is pedantic.
Technical Details
Message-ID: <atXe37WHV1gw5hkA@chamomile>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348366-linux-kernel-netdev=dewy.ru
References: <20261018005638.1776148-13-pablo@netfilter.org> <179237288830.3135.1355021906814917621@kernel.org>

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-348366-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 12/15] netfilter: flowtable: set inner protocol
 when popping tunnel header
Date: Mon, 19 Oct 2026 11:11:59 +0200
Organization: Usenet Network
Message-ID: <atXe37WHV1gw5hkA@chamomile>
References: <20261018005638.1776148-13-pablo@netfilter.org>
 <179237288830.3135.1355021906814917621@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3555407"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:mGUPw5bQ6BkbibLfQbcEW8F2/+A= sha256:EYouv/ocDjLmRkDDlXpSViIrtWulgHm8WPXi+ZHwcms=
	sha1:+ATiSfBQ1Ry+lHDFCoaUyyG3rSo= sha256:8IvjeOuQW4lAW8wSw/WruYD2GJLpR1wVNrzPsDpejys=
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 E668B110966; Mon, 19 Oct 2026 12:18:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	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=netfilter.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 3GcyC_5AWsdQ;
	Mon, 19 Oct 2026 12:18:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-348366-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id A470E110962; Mon, 19 Oct 2026 12:18:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id A69072B3A5; Mon, 19 Oct 2026 09:12:07 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id EA0CC4908B2;
	Mon, 19 Oct 2026 09:12:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b="ISJaS88P"
X-Received: from mail.netfilter.org (mail.netfilter.org [217.70.190.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 30045493635;
	Mon, 19 Oct 2026 09:12:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.190.124
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792401125; cv=none; b=F8Xi0tXBHqKl1BLISIS8z6JmhmHJUQdj0IlLv/8BDaLiZuUwA9dFyMkynnVXY6PmFw/MDoT/kTYmDxSEsX0kZEHRhDeAaXRHl6Y5Z81Kn7LwBLRmRl5VJ2fvTpXqYeLSADigkt8a7mx7VvUdd4nP49QD3w6Lqq+HUfJ0BqqFM30=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792401125; c=relaxed/simple;
	bh=05P3N1/O3Mh+BZT3a1VwQynUd5tcNA84Z+9ixTM8d8c=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=MHOuFQOmz5qpQR7mfUoeXL17FIKN6HFKMHgWrD2TIQx3LPGcfMtRNa9zzZYoMz3WPMW+TwJUdCCtCEr1E5fgqasE8ZZoMou5fr2pcmK2fy00Q5pT7BsUQ2H3sl3zqFjjwiIrnaA6f/zmDaaVJqIFrGI62ugjj9C3OIa9ha7ai/8=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=netfilter.org; dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b=ISJaS88P; arc=none smtp.client-ip=217.70.190.124
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netfilter.org
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;
	s=2025; t=1792401122;
	bh=qpB7o/ErM9PPW/v99I7HqjsRQo7rsG9qrHmSNPoLSJI=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=ISJaS88PjBH4+cvmk4Z7aarxmFuSToDCldb9v+Z46YW8fdtyjblfayY4/5KdfZwXo
	 aXE09QzcXjdJprR3m2TT683efiEeBROPLZ9VWYROwAcb3wIgdWRdu3rMKTPGTTVYWP
	 a97iqyOCT0LVoKAWGK9yNQWSYWcTWwMjsUH8G15aLHO2FikuRtszPzsmH9e2c2YNAK
	 3mRN4QL8Q4x3UKvJqkC+bqbwJw3DQ881PGcvK7s7+r7JtMycofyWRL44r/N7Q52ofW
	 IE/1rH3cp/NR4m3adAw9eMiiw7kJzrEzlxkt9ycsNdF62+MisL8NCC1M6sb4wJ1Ygc
	 0njjU8Og9MslA==
X-Received: from netfilter.org (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with UTF8SMTPSA id 1356360057;
	Mon, 19 Oct 2026 11:12:02 +0200 (CEST)
X-Cc: netfilter-devel@vger.kernel.org, davem@davemloft.net,
	netdev@vger.kernel.org, kuba@kernel.org, pabeni@redhat.com,
	edumazet@kernel.org, horms@kernel.org, fw@strlen.de, ja@ssi.bg
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <179237288830.3135.1355021906814917621@kernel.org>