From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Julius Bairaktaris <julius@bairaktaris.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nf,v6 2/3] netfilter: flowtable: cache destination hw address for XMIT_NEIGH type
Date: Sun, 22 Nov 2026 01:25:16 +0100 [thread overview]
Message-ID: <awI2bKH0J7f8xMZZ@chamomile> (raw)
In-Reply-To: <20261121235548.2567423-1-julius@bairaktaris.de>
On Sun, Nov 22, 2026 at 12:55:48AM +0100, Julius Bairaktaris wrote:
> On Fri, Nov 20, 2026 at 11:52:26PM +0100, Pablo Neira Ayuso wrote:
> > @@ -383,6 +400,7 @@ static int ipip_fill_forward_path(struct net_device_path_ctx *ctx,
> > path->tun.dst = &rt->dst;
> > path->dev = ctx->dev;
> >
> > + memcpy(ctx->daddr, ha, ETH_ALEN);
> > ctx->dev = rt->dst.dev;
>
> With this, an ipip or ip6tnl tunnel whose underlay device is a bridge
> gets offloaded: br_fill_forward_path() finds the outer next hop's MAC
> in the fdb and nft_dev_path_info() makes the tuple
> FLOW_OFFLOAD_XMIT_DIRECT. On nf-next without the series such a flow is
> not offloaded.
>
> > +static inline bool nf_flow_dst_check_gc(struct flow_offload *flow, int dir)
> > +{
> [...]
> > + if (tuple->xmit_type != FLOW_OFFLOAD_XMIT_NEIGH)
> > + return true;
>
> For that direct tuple the gc returns here and never compares out.h_dest
> with the neighbour entry. When the next hop behind the bridge changes its
> MAC and the router's neighbour entry is replaced, the flow keeps sending
> to the old MAC: IPIP and IP6IP6 over a bridge stall, 3 of 3 runs each
> (QEMU, nf-next 994089a3fa38 with this series). IPIP over a plain port is
> neigh xmit, is torn down and offloaded again, 3 of 3. A bridged direct
> flow without a tunnel stalls the same way, here (3 of 3) and on nf-next
> without the series (1 run).
So you're suggesting nf_flow_dst_check_gc() should run for
FLOW_OFFLOAD_XMIT_DIRECT too?
next prev parent reply other threads:[~2026-11-22 0:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 22:52 [PATCH nf,v6 1/3] netfilter: flowtable: remove redundant ifidx field in tuple output union Pablo Neira Ayuso
2026-11-20 22:52 ` [PATCH nf,v6 2/3] netfilter: flowtable: cache destination hw address for XMIT_NEIGH type Pablo Neira Ayuso
2026-11-21 23:55 ` Julius Bairaktaris
2026-11-22 0:25 ` Pablo Neira Ayuso [this message]
2026-11-22 0:35 ` Pablo Neira Ayuso
2026-11-22 0:57 ` Pablo Neira Ayuso
2026-11-20 22:52 ` [PATCH nf,v6 3/3] netfilter: flowtable: unify direct and neigh xmit path Pablo Neira Ayuso
-- strict thread matches above, loose matches on Subject: below --
2026-11-22 12:02 [PATCH nf,v6 2/3] netfilter: flowtable: cache destination hw address for XMIT_NEIGH type 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=awI2bKH0J7f8xMZZ@chamomile \
--to=pablo@netfilter.org \
--cc=julius@bairaktaris.de \
--cc=netfilter-devel@vger.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.