]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: Introduce tunnel metadata info in nf_flowtable_ctx struct
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 22 Jan 2026 17:46:14 +0000 (18:46 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 29 Jan 2026 08:52:06 +0000 (09:52 +0100)
commitc64436daf675a368f3d850b2fad26e2a654f43d1
tree59b990f18d91da247cf0eef8d1f8c06e1ca933f6
parentbaa501b12a484818631b154adb854d976b447b23
netfilter: Introduce tunnel metadata info in nf_flowtable_ctx struct

Add tunnel hdr_size and tunnel proto fields in nf_flowtable_ctx struct
in order to store IP tunnel header size and protocol used during IPIP
and IP6IP6 tunnel sw offloading decapsulation and avoid recomputing them
during tunnel header pop since this is constant for IPv6.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_flow_table_ip.c