🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3538

Re: [PATCH nf-next v7 1/2] netfilter: flowtable: tear down direct xmit flows when the fdb entry moves

#3538
From: Pablo Neira Ayuso
Date: Thu, 15 Oct 2026 10:37
33 lines
7339 bytes
On Thu, Oct 15, 2026 at 12:34:06PM +0200, Pablo Neira Ayuso wrote:
> On Thu, Oct 15, 2026 at 01:56:26AM +0200, Julius Bairaktaris wrote:
[...]
> > @@ -183,6 +185,11 @@ static int nft_dev_path_info(struct net_device_path_stack *stack,
> >  			case DEV_PATH_BR_VLAN_KEEP:
> >  				break;
> >  			}
> > +			/* dev_fill_forward_path() adds the bridge port after
> > +			 * the bridge.
> > +			 */
> > +			info->bridge_ifidx = stack->path[i + 1].dev->ifindex;
> > +			info->bridge_vid = path->bridge.vlan_id;
> 
> Why do we need this new bridge_vid field? This is stored in info->encaps.
> 
>                 case DEV_PATH_BR_VLAN_TAG:
>                                 if (info->num_encaps >= NF_FLOW_TABLE_ENCAP_MAX)
>                                         goto err_out;
>  
>                                 info->encap[info->num_encaps].id = path->bridge.vlan_id;
> 
> My understanding is that this is need to know if this vlan coming from
> bridge vlan filtering (not vlan device), but it is possible to track
> this in a local variable while walking over the path stack?

A new flag might be need, but there is room for new flags to annotate
this VLAN header came from bridge filter filtering, I understand
info->encap is not enough.

> >  			info->xmit_type = FLOW_OFFLOAD_XMIT_DIRECT;
> >  			break;
> >  		default:
Technical Details
Message-ID: <atCs-U_AXIyvvpKd@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-346678-linux-kernel-netdev=dewy.ru
References: <20261014235628.197976-1-julius@bairaktaris.de> <20261014235628.197976-2-julius@bairaktaris.de> <atCsGx2IRecQNK3r@chamomile>

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-346678-linux-kernel-netdev=dewy.ru
From: pablo@netfilter.org (Pablo Neira Ayuso)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH nf-next v7 1/2] netfilter: flowtable: tear down direct
 xmit flows when the fdb entry moves
Date: Thu, 15 Oct 2026 12:37:45 +0200
Organization: Usenet Network
Message-ID: <atCs-U_AXIyvvpKd@chamomile>
References: <20261014235628.197976-1-julius@bairaktaris.de>
 <20261014235628.197976-2-julius@bairaktaris.de>
 <atCsGx2IRecQNK3r@chamomile>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="2509688"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8mFKjBWQh3WttcJOXXcym/G9xVM= sha256:QpRB1szCl1Wsa+abGWktrFHL1UQWPXPiKXNMHedJo7Y=
	sha1:QlXbzGegcZxm6OSoPnc52m5+cQg= sha256:afrkqJmpzdfnSlYpeZatu6plP0R2jfppZ3pO7oOARSw=
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 EC44D1102C4; Thu, 15 Oct 2026 13:44:04 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=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 8Re1meHkDUzL;
	Thu, 15 Oct 2026 13:44:02 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-346678-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id E7FA21102A0; Thu, 15 Oct 2026 13:43:53 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id E402E35D0F; Thu, 15 Oct 2026 10:37:52 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E5DA5172CE;
	Thu, 15 Oct 2026 10:37:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org header.b="gh2+J9kB"
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 77EA6502790;
	Thu, 15 Oct 2026 10:37:50 +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=1792060672; cv=none; b=CCawW84/VHyHVC+OIkrXpwHdL2D8sFM+WObjuRIF15dxAybjAKcZhfImFCpP4xkpCeM1pK2ysBKA7AIEqh7OuUbyQhuTEv+c59hCjZz9Wz8a77f21yFsIiRGwV7sYP6WNpiTIVVHpWU1Hkn2YuMS8iwoOOpZmzmR6SOa+ryuats=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792060672; c=relaxed/simple;
	bh=pi1spHJrkmpthoLfYy09/FDeB23hvcdEhXdU/TPtt+0=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=L9XDB1ehHB7Bl8MlY8Fbn0fBwquHmkr9puzzGgGutfJtQop0sOdIoZYVkspsmRcbLlMs24CwU2qRhPY1oI5cHrigZHH76fEpgdCDrTsRvbPsF2peTFt6lD3WqEq/2NuQDrOciKEkxPmgtpoBCD+RnZ7kF7qRA3LXOam/83X59yg=
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=gh2+J9kB; 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=1792060668;
	bh=x1hTOdx9HBwQjS6C/jhkTLQ0ZT4WclQ+JGizpYah/yI=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To:From;
	b=gh2+J9kBcDUzR6Em3XBL8H7KwQoVn2ySnfvdMZ0CfcTSOU8jqCIg9UzZYEOGpceEi
	 N4864J4TR8KVbA+9KLp5+Rt2O08n68WsZ/fqsGQbiP/ZxT7gCnZGiSjpxCZIoEgcEc
	 hoxGs4LqNWytQzxWrZUhA3JeSlVdjZaUtNb1MiMAuYdAlL5MK79OSdLjmWSsJRSRWR
	 4Lt6sc+mTO6FbZuBIs8Pi7bigLeczAMqtKHMx5/TNI5YS7VLUn12VjR680cHN5VV92
	 +17LgCKnL8z/XC4nYThooGpvXA7rg8Vf97PEZYcNVs7usqM+ng4izf32O1gGrgdDem
	 OexN5VZ9ATNQg==
X-Received: from netfilter.org (mail-agni [217.70.190.124])
	by mail.netfilter.org (Postfix) with UTF8SMTPSA id EEFEF60074;
	Thu, 15 Oct 2026 12:37:47 +0200 (CEST)
X-Cc: netfilter-devel@vger.kernel.org, fw@strlen.de, kadlec@netfilter.org,
	phil@nwl.cc, horms@kernel.org, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	shuah@kernel.org, razor@blackwall.org, idosch@nvidia.com,
	ericwouds@gmail.com, dqfext@gmail.com, netdev@vger.kernel.org,
	coreteam@netfilter.org, linux-kselftest@vger.kernel.org,
	bridge@lists.linux.dev, linux-kernel@vger.kernel.org
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: <atCsGx2IRecQNK3r@chamomile>