From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Julius Bairaktaris <julius@bairaktaris.de>
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
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 [thread overview]
Message-ID: <atCs-U_AXIyvvpKd@chamomile> (raw)
In-Reply-To: <atCsGx2IRecQNK3r@chamomile>
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:
next prev parent reply other threads:[~2026-10-15 10:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 23:56 [PATCH nf-next v7 0/2] netfilter: flowtable: tear down bridged flows on layer 2 roaming Julius Bairaktaris
2026-10-14 23:56 ` [PATCH nf-next v7 1/2] netfilter: flowtable: tear down direct xmit flows when the fdb entry moves Julius Bairaktaris
2026-10-15 10:34 ` Pablo Neira Ayuso
2026-10-15 10:37 ` Pablo Neira Ayuso [this message]
2026-10-15 11:14 ` Julius Bairaktaris
2026-10-14 23:56 ` [PATCH nf-next v7 2/2] selftests: netfilter: nft_flowtable.sh: roam a host between two bridge ports Julius Bairaktaris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=atCs-U_AXIyvvpKd@chamomile \
--to=pablo@netfilter.org \
--cc=bridge@lists.linux.dev \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=dqfext@gmail.com \
--cc=edumazet@google.com \
--cc=ericwouds@gmail.com \
--cc=fw@strlen.de \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=julius@bairaktaris.de \
--cc=kadlec@netfilter.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=phil@nwl.cc \
--cc=razor@blackwall.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.