From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Cc: chzhengyang2023@lzu.edu.cn, lorenzo@kernel.org
Subject: [PATCH nf 0/3] flowtable fixes for ipip tunnels
Date: Mon, 29 Jun 2026 16:39:33 +0200 [thread overview]
Message-ID: <20260629143936.61239-1-pablo@netfilter.org> (raw)
Hi,
The following patchset contains fixes for the flowtable ipip support:
Patch #1 updates nf_flow_tunnel_ip{6}ip{6}_push() to use the dst_entry
in this direction to calculate headroom and set iph->frag_off.
Apparently, nft_flow_tunnel_update_route() sets the right
dst_entry in this direction, but datapath uses the other direction.
Patch #2 adds a function to bail out early on any attempt to hardware
offload a flow entry which is not supported. Currently, ->num_tun
has no drivers supporting this.
Patch #3 makes dst_entry available for all xmit modes which is required
to reach the dst_entry when pushing the ipip header (see related
patch #1). Based on patch from Rein Wein.
This series is passing nft_flowtable.sh selftest here, including Ren Wei's
patch:
[nf,v3,2/2] selftests: netfilter: add bridge tunnel flowtable regression
https://patchwork.ozlabs.org/project/netfilter-devel/patch/5b8a9e87ff7b47401612bb0e0fc841d8bfdd333d.1782092221.git.chzhengyang2023@lzu.edu.cn/
which should be also be taken upstream.
Pablo Neira Ayuso (3):
netfilter: flowtable: use dst in this direction when pushing IPIP header
netfilter: flowtable: IPIP tunnel hardware offload is not yet support
netfilter: flowtable: support IPIP tunnel with direct xmit
include/net/netfilter/nf_flow_table.h | 4 ++--
net/netfilter/nf_flow_table_core.c | 15 +++++++++++----
net/netfilter/nf_flow_table_ip.c | 21 ++++++++++++---------
net/netfilter/nf_flow_table_offload.c | 17 +++++++++++++++++
4 files changed, 42 insertions(+), 15 deletions(-)
--
2.47.3
next reply other threads:[~2026-06-29 14:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 14:39 Pablo Neira Ayuso [this message]
2026-06-29 14:39 ` [PATCH nf 1/3] netfilter: flowtable: use dst in this direction when pushing IPIP header Pablo Neira Ayuso
2026-06-29 15:17 ` Lorenzo Bianconi
2026-06-29 14:39 ` [PATCH nf 2/3] netfilter: flowtable: IPIP tunnel hardware offload is not yet support Pablo Neira Ayuso
2026-06-29 15:15 ` Lorenzo Bianconi
2026-06-29 14:39 ` [PATCH nf 3/3] netfilter: flowtable: support IPIP tunnel with direct xmit Pablo Neira Ayuso
2026-06-29 15:13 ` Lorenzo Bianconi
2026-07-01 6:44 ` [PATCH nf 0/3] flowtable fixes for ipip tunnels 陈正阳
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=20260629143936.61239-1-pablo@netfilter.org \
--to=pablo@netfilter.org \
--cc=chzhengyang2023@lzu.edu.cn \
--cc=lorenzo@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox