]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv6: export fib6_lookup for nft_fib_ipv6
authorFlorian Westphal <fw@strlen.de>
Mon, 1 Dec 2025 18:47:13 +0000 (19:47 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 4 Mar 2026 10:45:44 +0000 (11:45 +0100)
commit7a135bf9903fe599aec1825ebc2c5b026fe1e38c
tree8335f0dee1ddb6e05f986eb7324da39ac6602d27
parent4ad96a7c9e2cebbbdc68369438a736a133539f1d
ipv6: export fib6_lookup for nft_fib_ipv6

Upcoming patch will call fib6_lookup from nft_fib_ipv6.  The EXPORT_SYMBOL is
added twice because there are two implementations of the function, one
is a small stub for MULTIPLE_TABLES=n, only one is compiled into the
kernel depending on .config settings.

Alternative to EXPORT_SYMBOL is to use an indirect call via the
ipv6_stub->fib6_lookup() indirection, but thats more expensive than the
direct call.

Also, nft_fib_ipv6 cannot be builtin if ipv6 is a module.

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