netfilter: nft_fib_ipv6: switch to fib6_lookup
authorFlorian Westphal <fw@strlen.de>
Sat, 22 Nov 2025 18:24:49 +0000 (19:24 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 4 Mar 2026 10:45:44 +0000 (11:45 +0100)
commit1c32b24c234ba88a969e6bd9c385e66212a4af15
treeae8ba262437406f09771f5d57b95a2b783985d46
parent831fb31b76aea1453229dfd7cbd1946ffe1c03b5
netfilter: nft_fib_ipv6: switch to fib6_lookup

Existing code works but it requires a temporary dst object that is
released again right away.

Switch to fib6_lookup + RT6_LOOKUP_F_DST_NOREF: no need for temporary dst
objects and refcount overhead anymore.

Provides ~13% improvement in match performance.

Signed-off-by: Florian Westphal <fw@strlen.de>
net/ipv6/netfilter/nft_fib_ipv6.c